Commit 0a653eb3 authored by Daniel STAN's avatar Daniel STAN

[securite] SECRET_KEY chargée depuis secrets.py

parent a04ee5f6
......@@ -4,6 +4,7 @@
# Connexion à la base ldap
import sys
sys.path.append("/usr/scripts/gestion")
sys.path.append("/etc/crans/secrets")
from ldap_crans import crans_ldap
db = crans_ldap()
......@@ -70,7 +71,7 @@ MEDIA_URL = 'https://intranet2.crans.org/'
ADMIN_MEDIA_PREFIX = '/media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = '$u9k=cu^7hs7=-l!i$=n@t$yu91(%owdi+str2*4%=eofqm-6f'
from secrets import django_secret_key as SECRET_KEY
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment