From b91910d36237580504ec553c8512707251891206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 24 Dec 2019 16:53:01 +0100 Subject: [PATCH] SERVER_EMAIL is not a secret --- WikiENS/settings/common.py | 3 +-- WikiENS/settings/secret_example.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/WikiENS/settings/common.py b/WikiENS/settings/common.py index 3cbf8d5..99af98e 100644 --- a/WikiENS/settings/common.py +++ b/WikiENS/settings/common.py @@ -1,5 +1,4 @@ import os -import sys from django.urls import reverse_lazy @@ -28,13 +27,13 @@ def import_secret(name): SECRET_KEY = import_secret("SECRET_KEY") ADMINS = import_secret("ADMINS") MANAGERS = ADMINS -SERVER_EMAIL = import_secret("SERVER_EMAIL") EMAIL_HOST = import_secret("EMAIL_HOST") DBNAME = import_secret("DBNAME") DBUSER = import_secret("DBUSER") DBPASSWD = import_secret("DBPASSWD") +SERVER_EMAIL = "wiki@www.eleves.ens.fr" BASE_DIR = os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))) diff --git a/WikiENS/settings/secret_example.py b/WikiENS/settings/secret_example.py index 6d77f47..5fc6f4f 100644 --- a/WikiENS/settings/secret_example.py +++ b/WikiENS/settings/secret_example.py @@ -1,6 +1,5 @@ SECRET_KEY = '_u5q4-^1qgkqg=i5o5ha*xkd@82#l$e+%m)$v+4y#t-5!g-%g2' ADMINS = None -SERVER_EMAIL = "changeme@localhost" EMAIL_HOST = "localhost" DBNAME = "wiki"