Commit adf62705 authored by Georges Gressot's avatar Georges Gressot 💬
Browse files

secret key with try_except

parent a2287695
epl_version ="v2.04 (Bertrada)"
date_version ="November 2, 2021"
# Mise au niveau de :
epl_version ="v2.05.3 (~Himiltrude)"
date_version ="November 2, 2021"
# epl_version ="v2.05.3 (~Himiltrude)"
# date_version ="November 2, 2021"
from django.shortcuts import render
......
......@@ -22,8 +22,11 @@ SITE_NAME = basename(BASE_DIR)
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
from .secret_key import SECRET_KEY
# Le fichier secret_key.py n'apparait pas dans les dépôts publics = inclus dans .gitignore (Georges G.)
try:
from .secret_key import SECRET_KEY
# Le fichier secret_key.py n'apparait pas dans les dépôts publics = inclus dans .gitignore (Georges G.)
except:
pass
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
......
Supports Markdown
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