From 98a3f7225b8b1265b3255a7e104545ea94e05ab4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 1 Aug 2019 18:47:59 +0200 Subject: Translations - basic makefile --- commonnet/settings.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'commonnet/settings.py') 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 -- cgit v1.2.3