--- /dev/null
+from django.conf import settings # import the settings file
+from organization.pages.models import Page
+
+def page_static(request):
+ NEWSLETTER_SUBSCRIBING_URL = Page.objects.filter(slug="newsletter").first().get_absolute_url()
+ return {'NEWSLETTER_SUBSCRIBING_URL': NEWSLETTER_SUBSCRIBING_URL,}
'django.core.context_processors.tz',
'mezzanine.conf.context_processors.settings',
'mezzanine.pages.context_processors.page',
- 'organization.core.context_processors.static')}}]
+ 'organization.core.context_processors.static',
+ 'organization.pages.context_processors.page_static')}}]
# List of middleware classes to use. Order is important; in the request phase,
# these middleware classes will be applied in the order given, and in the