src/cm/context_processors.py
changeset 228 3a0f8b54a151
parent 160 0c01050f9717
child 444 9246b0057a75
equal deleted inserted replaced
227:57492cd7e162 228:3a0f8b54a151
     1 from django.conf import settings
     1 from django.conf import settings
     2 from cm.models import ApplicationConfiguration
     2 from cm.models import ApplicationConfiguration
     3 
     3 from cm.cm_settings import TRACKING_HTML
     4 def static(request):
     4 def static(request):
     5     """
     5     """
     6     add static data to be used in templates
     6     add static data to be used in templates
     7     """
     7     """
     8     return {
     8     return {
     9             'SITE_URL' : settings.SITE_URL,
     9             'SITE_URL' : settings.SITE_URL,
    10             'CLIENT_DEBUG' : settings.CLIENT_DEBUG,
    10             'CLIENT_DEBUG' : settings.CLIENT_DEBUG,
    11             'YUI_VERSION' : settings.YUI_VERSION,
    11             'YUI_VERSION' : settings.YUI_VERSION,
    12             'CONF': ApplicationConfiguration,
    12             'CONF': ApplicationConfiguration,
    13             'CM_MEDIA_PREFIX' : settings.CM_MEDIA_PREFIX,
    13             'CM_MEDIA_PREFIX' : settings.CM_MEDIA_PREFIX,
       
    14             'TRACKING_HTML' : TRACKING_HTML,
    14             }
    15             }
    15 
    16 
    16 
    17 
    17 
    18 
    18 def tz(request):
    19 def tz(request):