fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix missing custom PDF link
[wolnelektury.git]
/
src
/
wolnelektury
/
settings
/
basic.py
diff --git
a/src/wolnelektury/settings/basic.py
b/src/wolnelektury/settings/basic.py
index
5c86787
..
fe048e4
100644
(file)
--- a/
src/wolnelektury/settings/basic.py
+++ b/
src/wolnelektury/settings/basic.py
@@
-3,7
+3,8
@@
#
import os
#
import os
-DEBUG = True
+DEBUG = os.environ.get('DEBUG', '')
+SECRET_KEY = os.environ.get('SECRET_KEY', None)
ADMINS = [
# ('Your Name', 'your_email@domain.com'),
ADMINS = [
# ('Your Name', 'your_email@domain.com'),
@@
-37,18
+38,30
@@
CACHE_MIDDLEWARE_SECONDS = 3 * 60
CACHES = {
'default': {
CACHES = {
'default': {
- 'BACKEND': 'django.core.cache.backends.memcached.
Memcached
Cache',
+ 'BACKEND': 'django.core.cache.backends.memcached.
PyMemcache
Cache',
'TIMEOUT': 180,
'LOCATION': [
'memcached:11211',
],
'TIMEOUT': 180,
'LOCATION': [
'memcached:11211',
],
+ 'OPTIONS': {
+ "no_delay": True,
+ "ignore_exc": True, # treat memcached errors as cache misses
+ "max_pool_size": 4,
+ "use_pooling": True,
+ },
},
'template_fragments': {
},
'template_fragments': {
- 'BACKEND': 'django.core.cache.backends.memcached.
Memcached
Cache',
+ 'BACKEND': 'django.core.cache.backends.memcached.
PyMemcache
Cache',
'TIMEOUT': 86400,
'LOCATION': [
'memcached:11211',
],
'TIMEOUT': 86400,
'LOCATION': [
'memcached:11211',
],
+ 'OPTIONS': {
+ "no_delay": True,
+ "ignore_exc": True, # treat memcached errors as cache misses
+ "max_pool_size": 4,
+ "use_pooling": True,
+ },
},
}
},
}