fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More generic pages.
[wolnelektury.git]
/
src
/
wolnelektury
/
settings
/
basic.py
diff --git
a/src/wolnelektury/settings/basic.py
b/src/wolnelektury/settings/basic.py
index
11eb7cf
..
2e3d81d
100644
(file)
--- a/
src/wolnelektury/settings/basic.py
+++ b/
src/wolnelektury/settings/basic.py
@@
-43,7
+43,6
@@
SITE_ID = 1
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'APP_DIRS': True,
'OPTIONS': {
'context_processors': (
'django.contrib.auth.context_processors.auth',
'OPTIONS': {
'context_processors': (
'django.contrib.auth.context_processors.auth',
@@
-55,8
+54,16
@@
TEMPLATES = [{
'wolnelektury.context_processors.extra_settings',
'search.context_processors.search_form',
),
'wolnelektury.context_processors.extra_settings',
'search.context_processors.search_form',
),
+ 'loaders': [
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.loaders.app_directories.Loader',
+ ],
},
}]
},
}]
+if not DEBUG:
+ TEMPLATES['loaders'] = [
+ ('django.template.loaders.cached.Loader', TEMPLATES['loaders'])
+ ]
MIDDLEWARE = [
'debug_toolbar.middleware.DebugToolbarMiddleware',
MIDDLEWARE = [
'debug_toolbar.middleware.DebugToolbarMiddleware',