nsupdate.info/nsupdate/context_processors.py
2013-10-17 23:59:07 +02:00

11 lines
274 B
Python

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