add tracking HTML from configuration
authorraph
Wed, 24 Mar 2010 16:14:19 +0100
changeset 228 3a0f8b54a151
parent 227 57492cd7e162
child 229 f6ae685b3097
add tracking HTML from configuration
src/cm/cm_settings.py
src/cm/context_processors.py
src/cm/templates/site/tracking.html
--- a/src/cm/cm_settings.py	Mon Mar 22 15:49:15 2010 +0100
+++ b/src/cm/cm_settings.py	Wed Mar 24 16:14:19 2010 +0100
@@ -23,4 +23,6 @@
 AUTO_CONTRIB_REGISTER = get_setting('AUTO_CONTRIB_REGISTER', False)
 
 # show email in user list
-SHOW_EMAILS_IN_ADMIN = get_setting('SHOW_EMAILS_IN_ADMIN', True)
\ No newline at end of file
+SHOW_EMAILS_IN_ADMIN = get_setting('SHOW_EMAILS_IN_ADMIN', True)
+
+TRACKING_HTML = get_setting('TRACKING_HTML', '')
\ No newline at end of file
--- a/src/cm/context_processors.py	Mon Mar 22 15:49:15 2010 +0100
+++ b/src/cm/context_processors.py	Wed Mar 24 16:14:19 2010 +0100
@@ -1,6 +1,6 @@
 from django.conf import settings
 from cm.models import ApplicationConfiguration
-
+from cm.cm_settings import TRACKING_HTML
 def static(request):
     """
     add static data to be used in templates
@@ -11,6 +11,7 @@
             'YUI_VERSION' : settings.YUI_VERSION,
             'CONF': ApplicationConfiguration,
             'CM_MEDIA_PREFIX' : settings.CM_MEDIA_PREFIX,
+            'TRACKING_HTML' : TRACKING_HTML,
             }
 
 
--- a/src/cm/templates/site/tracking.html	Mon Mar 22 15:49:15 2010 +0100
+++ b/src/cm/templates/site/tracking.html	Wed Mar 24 16:14:19 2010 +0100
@@ -0,0 +1,1 @@
+{{ TRACKING_HTML }}
\ No newline at end of file