Update settings for locale

This commit is contained in:
Edgar P. Burkhart 2023-04-22 15:08:21 +02:00
parent 13b014e16e
commit 5abb9a3b30
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -63,6 +63,7 @@ INSTALLED_APPS = [
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.locale.LocaleMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
@ -118,9 +119,10 @@ AUTH_PASSWORD_VALIDATORS = []
LANGUAGE_CODE = "fr-fr"
TIME_ZONE = CONFIG.get("time_zone", "CET")
USE_I18N = True
USE_L10N = True
USE_TZ = True
LOCALE_PATHS = [
"locale",
BASE_DIR.joinpath("locale"),
]
# Static files (CSS, JavaScript, Images)