Add cache setting to dev settings

This commit is contained in:
Sonny 2020-03-01 20:33:14 +01:00 committed by Sonny
parent 961535dd60
commit 61bc7e9b04

View file

@ -9,6 +9,17 @@ EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
INSTALLED_APPS += ["debug_toolbar", "django_extensions"] INSTALLED_APPS += ["debug_toolbar", "django_extensions"]
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
"LOCATION": "localhost:11211",
},
"axes": {
"BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
"LOCATION": "localhost:11211",
},
}
try: try:
from .local import * # noqa from .local import * # noqa
except ImportError: except ImportError: