1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 17:42:23 +00:00

Allow to use a local settings file

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-02-24 08:45:59 +01:00
parent 2155275627
commit 87038dd6f4
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 6 additions and 14 deletions

15
.gitignore vendored
View File

@ -15,16 +15,6 @@ coverage
*.mo *.mo
*.pot *.pot
# Jupyter Notebook
.ipynb_checkpoints
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# PyCharm project settings # PyCharm project settings
.idea .idea
@ -32,7 +22,7 @@ coverage
.vscode .vscode
# Local data # Local data
secrets.py settings_local.py
*.log *.log
media/ media/
output/ output/
@ -42,6 +32,3 @@ output/
env/ env/
venv/ venv/
db.sqlite3 db.sqlite3
# Don't git index
whoosh_index/

View File

@ -284,3 +284,8 @@ if TFJM_STAGE == "prod": # pragma: no cover
from .settings_prod import * # noqa: F401,F403 from .settings_prod import * # noqa: F401,F403
else: else:
from .settings_dev import * # noqa: F401,F403 from .settings_dev import * # noqa: F401,F403
try:
from .settings_local import *
except ImportError:
pass