diff --git a/neboard/settings.py b/neboard/settings.py --- a/neboard/settings.py +++ b/neboard/settings.py @@ -95,19 +95,26 @@ else: # Make this unique, and don't share it with anybody. SECRET_KEY = '@1rc$o(7=tt#kd+4s$u6wchm**z^)4x90)7f6z(i&55@o11*8o' -# List of callables that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', -) +TEMPLATES = [{ + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': ['templates'], + 'OPTIONS': { + 'loaders': [ + ('django.template.loaders.cached.Loader', [ + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + ]), + ], + 'context_processors': [ + 'django.core.context_processors.media', + 'django.core.context_processors.static', + 'django.core.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'boards.context_processors.user_and_ui_processor', + ], + }, +}] -TEMPLATE_CONTEXT_PROCESSORS = ( - 'django.core.context_processors.media', - 'django.core.context_processors.static', - 'django.core.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'boards.context_processors.user_and_ui_processor', -) MIDDLEWARE_CLASSES = [ 'django.middleware.http.ConditionalGetMiddleware', @@ -125,13 +132,6 @@ ROOT_URLCONF = 'neboard.urls' # Python dotted path to the WSGI application used by Django's runserver. WSGI_APPLICATION = 'neboard.wsgi.application' -TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. - 'templates', -) - INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes',