'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
]
+
+GRAPPELLI_INSTALLED = True
+JQUERY_FILENAME = 'jquery-3.1.0.min.js'
+JQUERY_UI_FILENAME = 'jquery-ui-1.12.0.min.js'
verbose_name=_("Related articles"), blank=True)
model_name = _('article')
+
def get_absolute_url(self):
return reverse("magazine-article-detail", kwargs={"slug": self.slug})
model = ProjectLink
-class ProjectImageInline(StackedDynamicInlineAdmin):
+class ProjectImageInline(TabularDynamicInlineAdmin):
model = ProjectImage
def __str__(self):
return self.title
+ def get_absolute_url(self):
+ return reverse("organization-project-detail", kwargs={"slug": self.slug})
+
class ProjectBlock(Block):
from mezzanine.core.views import direct_to_template
from mezzanine.conf import settings
+from organization.project.views import *
urlpatterns = [
-
+ url("^project/detail/(?P<slug>.*)/$", ProjectDetailView.as_view(), name='organization-project-detail'),
]
from django.shortcuts import render
+from organization.project.models import *
from organization.core.views import *
# pip install django-querysetsequence
pip install django-autocomplete-light django-querysetsequence
/usr/bin/yes | pip uninstall django-orderable
+# /usr/bin/yes | pip uninstall grappelli-safe
+# pip install grappelli-safe
chown -R $uid:$gid $media
PACKAGE_NAME_FILEBROWSER = "filebrowser_safe"
PACKAGE_NAME_GRAPPELLI = "grappelli_safe"
-
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
{% load mezzanine_tags i18n staticfiles %}
{% compress js %}
- <!--<script src="{% static "vendors/jquery/dist/jquery.min.js" %}"></script>-->
+ <script src="{% static "vendors/jquery/dist/jquery.min.js" %}"></script>
<script src="{% static "vendors/overflow.js/js/overflow.js" %}"></script>
<script src="{% static "vendors/sticky-kit/jquery.sticky-kit.js" %}"></script>
<script src="{% static "vendors/jquery-throttle-debounce/jquery.ba-throttle-debounce.js" %}"></script>
volumes:
- ./app/:/srv/app
- ./lib/mezzanine-agenda/:/srv/lib/mezzanine-agenda
+ - ./lib/mezzanine/:/srv/lib/mezzanine
volumes_from:
- data
expose:
-e git+https://github.com/yomguy/mezzanine-agenda.git#egg=mezzanine-agenda-0.2.2
-#-e git+https://github.com/stephenmcd/mezzanine.git@master#egg=mezzanine-4.2.master
+-e git+https://github.com/yomguy/mezzanine.git@9917784#egg=mezzanine-4.2-dev
-e git+https://github.com/stephenmcd/grappelli-safe.git@dynamic_stacked#egg=grappelli-safe-0.4.2
#-e git+https://github.com/yourlabs/django-autocomplete-light.git#egg=django-autocomplete-light
#https://forge.ircam.fr/p/django-eve/source/download/dev/