feat(settings): Update

- Decrease the log verbosity
- Make STATIC_ROOT optional
- Move a CAS setting with the others
This commit is contained in:
Tom Hubrecht 2024-07-02 21:09:29 +02:00
parent dd5399c9be
commit 220ef6dd1e

View file

@ -87,9 +87,7 @@ CAS_WARN_TEMPLATE = "cas_eleves/warn.html"
STATIC_URL = "/static/" STATIC_URL = "/static/"
STATICFILES_DIRS = [BASE_DIR / "cas_eleves" / "static"] STATICFILES_DIRS = [BASE_DIR / "cas_eleves" / "static"]
STATIC_ROOT = credentials["STATIC_ROOT"] STATIC_ROOT = credentials.get("STATIC_ROOT")
CAS_SHOW_SERVICE_MESSAGES = False
### ###
# WSGI application configuration # WSGI application configuration
@ -159,7 +157,7 @@ LOGGING = {
}, },
"root": { "root": {
"handlers": ["console"], "handlers": ["console"],
"level": "DEBUG", "level": "WARNING",
}, },
} }
@ -183,5 +181,7 @@ CAS_LDAP_USER_QUERY = "(uid=%s)"
CAS_LDAP_USERNAME_ATTR = "uid" CAS_LDAP_USERNAME_ATTR = "uid"
CAS_LDAP_PASSWORD_CHECK = "bind" CAS_LDAP_PASSWORD_CHECK = "bind"
CAS_SHOW_SERVICE_MESSAGES = False
CAS_NEW_VERSION_EMAIL_WARNING = False CAS_NEW_VERSION_EMAIL_WARNING = False
CAS_NEW_VERSION_HTML_WARNING = False CAS_NEW_VERSION_HTML_WARNING = False