mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Set timezone and language code as env vars
This commit is contained in:
parent
95d31380fb
commit
1f932b5f49
1 changed files with 4 additions and 2 deletions
|
@ -27,6 +27,8 @@ env = environ.Env(
|
|||
MAILGUN_SENDER_DOMAIN=(str, ""),
|
||||
HOSTS=(list, []),
|
||||
DB_BASE_DIR=(Path, BASE_DIR),
|
||||
TIME_ZONE=(str, "Europe/Paris"),
|
||||
LANGUAGE_CODE=(str, "fr-fr"),
|
||||
)
|
||||
|
||||
env_file = os.getenv("ENV_FILE", None)
|
||||
|
@ -167,9 +169,9 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
||||
|
||||
LANGUAGE_CODE = "en-us"
|
||||
LANGUAGE_CODE = env("LANGUAGE_CODE")
|
||||
|
||||
TIME_ZONE = "Europe/Paris"
|
||||
TIME_ZONE = env("TIME_ZONE")
|
||||
|
||||
USE_I18N = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue