@@ -136,12 +136,28 @@ def raise_setting_error(setting):
136136# Make this unique, and don't share it with anybody.
137137SECRET_KEY = get_env_variable ('SECRET_KEY' )
138138
139- # List of callables that know how to import templates from various sources.
140- TEMPLATE_LOADERS = (
141- 'django.template.loaders.filesystem.Loader' ,
142- 'django.template.loaders.app_directories.Loader' ,
143- # 'django.template.loaders.eggs.Loader',
144- )
139+ TEMPLATES = [
140+ {
141+ 'BACKEND' : 'django.template.backends.django.DjangoTemplates' ,
142+ 'DIRS' : [
143+ # insert your TEMPLATE_DIRS here
144+ ],
145+ 'APP_DIRS' : True ,
146+ 'OPTIONS' : {
147+ 'context_processors' : [
148+ # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
149+ # list if you haven't customized them:
150+ 'django.contrib.auth.context_processors.auth' ,
151+ 'django.template.context_processors.debug' ,
152+ 'django.template.context_processors.i18n' ,
153+ 'django.template.context_processors.media' ,
154+ 'django.template.context_processors.static' ,
155+ 'django.template.context_processors.tz' ,
156+ 'django.contrib.messages.context_processors.messages' ,
157+ ],
158+ },
159+ },
160+ ]
145161
146162MIDDLEWARE_CLASSES = (
147163 'corsheaders.middleware.CorsMiddleware' ,
0 commit comments