Update settings
[eatslugs.git] / eatslugs / settings.py
index 5653f70621edd2a31f8eee7453d3e2377c54069a..1eec8323fef01ce263e3d5710598fd5b5efbe49f 100644 (file)
@@ -44,8 +44,8 @@ SECRET_KEY = "".join([random.choice(key_chars) for a in range(0,50)])
 
 # List of callables that know how to import templates from various sources.
 TEMPLATE_LOADERS = (
 
 # List of callables that know how to import templates from various sources.
 TEMPLATE_LOADERS = (
-    'django.template.loaders.filesystem.load_template_source',
-    'django.template.loaders.app_directories.load_template_source',
+    'django.template.loaders.filesystem.Loader',
+    'django.template.loaders.app_directories.Loader',
 )
 
 MIDDLEWARE_CLASSES = (
 )
 
 MIDDLEWARE_CLASSES = (
@@ -69,12 +69,23 @@ INSTALLED_APPS = (
     'recipes',
 )
 
     'recipes',
 )
 
-TEMPLATE_CONTEXT_PROCESSORS = (
-    'django.contrib.auth.context_processors.auth',
-    'django.core.context_processors.debug',
-    'django.core.context_processors.i18n',
-    'generic.context_processors.media',
-)
+TEMPLATES = [
+    {
+        'BACKEND': 'django.template.backends.django.DjangoTemplates',
+        'DIRS': [os.path.join(topdir, 'templates'),],
+        'APP_DIRS': True,
+        'OPTIONS': {
+            'context_processors': [
+                'django.contrib.auth.context_processors.auth',
+                'django.core.context_processors.debug',
+                'django.core.context_processors.i18n',
+                'generic.context_processors.media',
+            ],
+            'debug': True,
+        },
+    },
+]
+
 
 try:
     from localsettings import *
 
 try:
     from localsettings import *