summaryrefslogtreecommitdiff
path: root/commonnet/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'commonnet/settings.py')
-rw-r--r--commonnet/settings.py9
1 files changed, 5 insertions, 4 deletions
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