Commits

Richard Shea  committed f8442b4

Tidy up settings.py to accommodate Django Suit

  • Participants
  • Parent commits 6b2291f

Comments (0)

Files changed (2)

+django-charts-demo
+=========
+
+A django project to demonstrate different approaches to integrating charts with Django
+
+Makes use of "Django Suit" http://djangosuit.com
+
+
+
+

File dcdemo/dcdemo/settings.py

 # Make this unique, and don't share it with anybody.
 SECRET_KEY = '+qh#pu8)-54ukb&pf&qr)4bgwxm6vb^3-+m7qq#51@-5!$a&4b'
 
+# START django-suit specific changes START
+from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP
+
+TEMPLATE_CONTEXT_PROCESSORS = TCP + (
+    'django.core.context_processors.request',
+)
+# END   django-suit specific changes END   
 # List of callables that know how to import templates from various sources.
 TEMPLATE_LOADERS = (
     'django.template.loaders.filesystem.Loader',
     'django.contrib.sites',
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    'suit',
     # Uncomment the next line to enable the admin:
     # 'django.contrib.admin',
     # Uncomment the next line to enable admin documentation: