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
*.pot
# Jupyter Notebook
.ipynb_checkpoints
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# PyCharm project settings
.idea
@ -32,7 +22,7 @@ coverage
.vscode
# Local data
secrets.py
settings_local.py
*.log
media/
output/
@ -42,6 +32,3 @@ output/
env/
venv/
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
else:
from .settings_dev import * # noqa: F401,F403
try:
from .settings_local import *
except ImportError:
pass