# HG changeset patch # User raph # Date 1269443659 -3600 # Node ID 3a0f8b54a15121dba01bc459461becf71aee43ed # Parent 57492cd7e1626a3404a5d1931223215cf737dcbf add tracking HTML from configuration diff -r 57492cd7e162 -r 3a0f8b54a151 src/cm/cm_settings.py --- 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 diff -r 57492cd7e162 -r 3a0f8b54a151 src/cm/context_processors.py --- 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, } diff -r 57492cd7e162 -r 3a0f8b54a151 src/cm/templates/site/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