1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 11:56:37 +02:00

Put secret key in env settings, fix security issue

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-01-13 19:58:15 +01:00
parent cf561c4584
commit 202f979403
2 changed files with 1 additions and 3 deletions

View File

@ -9,8 +9,6 @@ DEBUG = False
# Mandatory !
ALLOWED_HOSTS = ['inscription.tfjm.org', 'plateforme.tfjm.org']
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'CHANGE_ME_IN_ENV_SETTINGS')
# Emails
EMAIL_BACKEND = 'mailer.backend.DbBackend'
MAILER_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'