nsupdate.info/nsupdate/nsupdate/context_processors.py
2013-09-29 03:13:04 +02:00

14 lines
342 B
Python

# -*- coding: utf-8 -*-
from django.conf import settings
def add_settings(request):
context = {}
context['WWW_IPV4_HOST'] = settings.WWW_IPV4_HOST
context['WWW_IPV6_HOST'] = settings.WWW_IPV6_HOST
try:
context['ENABLE_PIWIK_PRODUCTION'] = settings.ENABLE_PIWIK_PRODUCTION
except:
pass
return context