forked from DGNum/gestioCOF
Merge branch 'aureplop/fix_cache' into 'master'
Configure un système de cache See merge request !221
This commit is contained in:
commit
539c32dbbe
2 changed files with 14 additions and 0 deletions
|
@ -19,6 +19,7 @@ except ImportError:
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise RuntimeError("Secrets missing")
|
raise RuntimeError("Secrets missing")
|
||||||
|
|
||||||
|
|
||||||
# Other secrets
|
# Other secrets
|
||||||
try:
|
try:
|
||||||
from .secret import (
|
from .secret import (
|
||||||
|
@ -154,6 +155,18 @@ AUTHENTICATION_BACKENDS = (
|
||||||
|
|
||||||
RECAPTCHA_USE_SSL = True
|
RECAPTCHA_USE_SSL = True
|
||||||
|
|
||||||
|
# Cache settings
|
||||||
|
|
||||||
|
CACHES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'redis_cache.RedisCache',
|
||||||
|
'LOCATION': 'redis://:{passwd}@{host}:{port}/db'
|
||||||
|
.format(passwd=REDIS_PASSWD, host=REDIS_HOST,
|
||||||
|
port=REDIS_PORT, db=REDIS_DB),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Channels settings
|
# Channels settings
|
||||||
|
|
||||||
CHANNEL_LAYERS = {
|
CHANNEL_LAYERS = {
|
||||||
|
|
|
@ -6,6 +6,7 @@ django-cas-ng==3.5.5
|
||||||
django-djconfig==0.5.3
|
django-djconfig==0.5.3
|
||||||
django-grappelli==2.8.1
|
django-grappelli==2.8.1
|
||||||
django-recaptcha==1.0.5
|
django-recaptcha==1.0.5
|
||||||
|
django-redis-cache==1.7.1
|
||||||
mysqlclient==1.3.7
|
mysqlclient==1.3.7
|
||||||
Pillow==3.3.0
|
Pillow==3.3.0
|
||||||
six==1.10.0
|
six==1.10.0
|
||||||
|
|
Loading…
Reference in a new issue