From 87038dd6f429aed0c0b7f5abeb97c2aa4af61887 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 24 Feb 2024 08:45:59 +0100 Subject: [PATCH] Allow to use a local settings file Signed-off-by: Emmy D'Anello --- .gitignore | 15 +-------------- tfjm/settings.py | 5 +++++ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 6edc0b3..21f1bbf 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/tfjm/settings.py b/tfjm/settings.py index 6fa4177..17e1838 100644 --- a/tfjm/settings.py +++ b/tfjm/settings.py @@ -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