equal
deleted
inserted
replaced
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 from cm.cm_settings import TRACKING_HTML |
3 from cm.cm_settings import TRACKING_HTML |
|
4 from cm.converters.pandoc_converters import PANDOC_VERSION |
4 def static(request): |
5 def static(request): |
5 """ |
6 """ |
6 add static data to be used in templates |
7 add static data to be used in templates |
7 """ |
8 """ |
8 return { |
9 return { |
10 'CLIENT_DEBUG' : settings.CLIENT_DEBUG, |
11 'CLIENT_DEBUG' : settings.CLIENT_DEBUG, |
11 'YUI_VERSION' : settings.YUI_VERSION, |
12 'YUI_VERSION' : settings.YUI_VERSION, |
12 'CONF': ApplicationConfiguration, |
13 'CONF': ApplicationConfiguration, |
13 'CM_MEDIA_PREFIX' : settings.CM_MEDIA_PREFIX, |
14 'CM_MEDIA_PREFIX' : settings.CM_MEDIA_PREFIX, |
14 'TRACKING_HTML' : TRACKING_HTML, |
15 'TRACKING_HTML' : TRACKING_HTML, |
|
16 'PANDOC_VERSION' : PANDOC_VERSION, |
15 } |
17 } |
16 |
18 |
17 |
19 |
18 |
20 |
19 def tz(request): |
21 def tz(request): |