Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Georges Gressot
eplouribounistra
Commits
adf62705
Commit
adf62705
authored
Nov 03, 2021
by
Georges Gressot
💬
Browse files
secret key with try_except
parent
a2287695
Changes
2
Hide whitespace changes
Inline
Side-by-side
eplouribousse/apps/epl/views.py
View file @
adf62705
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
...
...
eplouribousse/settings/base.py
View file @
adf62705
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment