diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-01 18:47:59 +0200 |
---|---|---|
committer | Étienne Loks <etienne@peacefrogs.net> | 2019-08-01 18:47:59 +0200 |
commit | 98a3f7225b8b1265b3255a7e104545ea94e05ab4 (patch) | |
tree | 2b989210904c577ea4c241c1f850674adea1f8d7 /commonnet | |
parent | 108b5514fe795e3bbf4c76245047f5ea054c3d20 (diff) | |
download | Comm-on-net-98a3f7225b8b1265b3255a7e104545ea94e05ab4.tar.bz2 Comm-on-net-98a3f7225b8b1265b3255a7e104545ea94e05ab4.zip |
Translations - basic makefile
Diffstat (limited to 'commonnet')
-rw-r--r-- | commonnet/local_settings.py.sample | 2 | ||||
-rw-r--r-- | commonnet/settings.py | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/commonnet/local_settings.py.sample b/commonnet/local_settings.py.sample index c280f86..0cba3f5 100644 --- a/commonnet/local_settings.py.sample +++ b/commonnet/local_settings.py.sample @@ -2,3 +2,5 @@ RESPONSIBLE_EMAIL = None # Cache for http request - set to false in production DEV = True + +EXTRA_APPS = [] diff --git a/commonnet/settings.py b/commonnet/settings.py index b51b83e..c72756c 100644 --- a/commonnet/settings.py +++ b/commonnet/settings.py @@ -112,13 +112,12 @@ DATA_UPLOAD_MAX_NUMBER_FIELDS = 5000 STATIC_URL = '/static/' -RESPONSIBLE_EMAIL = None - try: from .local_settings import * except ImportError: - print("ERROR: a local_settings.py must be defined") - exit(1) + print("WARNING: a local_settings.py must be defined") + RESPONSIBLE_EMAIL = None + EXTRA_APPS = [] if not RESPONSIBLE_EMAIL: print("ERROR: a RESPONSIBLE_EMAIL must be defined in your " @@ -131,3 +130,5 @@ SCRAPPY_SETTINGS["USER_AGENT"] = "commonnet-scraper v{} ({})".format( if DEV: SCRAPPY_SETTINGS["HTTPCACHE_ENABLED"] = True + +INSTALLED_APPS += EXTRA_APPS |