use redis for the cache

This commit is contained in:
thomas girod
2024-07-31 00:17:41 +02:00
parent 4d2b82235c
commit c7b47bdd02
3 changed files with 138 additions and 4 deletions

View File

@ -203,8 +203,6 @@ SASS_PRECISION = 8
WSGI_APPLICATION = "sith.wsgi.application"
REST_FRAMEWORK = {}
# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
@ -215,6 +213,8 @@ DATABASES = {
}
}
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
# Logging
LOGGING = {
"version": 1,
@ -280,7 +280,7 @@ LOGOUT_URL = "/logout"
LOGIN_REDIRECT_URL = "/"
DEFAULT_FROM_EMAIL = "bibou@git.an"
SITH_COM_EMAIL = "bibou_com@git.an"
REST_FRAMEWORK["UNAUTHENTICATED_USER"] = "core.models.AnonymousUser"
# Those values are to be changed in production to be more effective
HONEYPOT_FIELD_NAME = "body2"
HONEYPOT_VALUE = "content"