aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/settings.py')
-rw-r--r--pysite/settings.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pysite/settings.py b/pysite/settings.py
index 16235e09..c7a21083 100644
--- a/pysite/settings.py
+++ b/pysite/settings.py
@@ -40,6 +40,11 @@ if DEBUG:
'wiki.pythondiscord.local'
]
SECRET_KEY = "+_x00w3e94##2-qm-v(5&-x_@*l3t9zlir1etu+7$@4%!it2##"
+
+elif 'CI' in os.environ:
+ ALLOWED_HOSTS = ['*']
+ SECRET_KEY = "{©ø¬½.Þ7&Ñ`Q^Kº*~¢j<wxß¾±ðÛJ@q"
+
else:
ALLOWED_HOSTS = [
'pythondiscord.com',
@@ -175,6 +180,3 @@ REST_FRAMEWORK = {
),
'TEST_REQUEST_DEFAULT_FORMAT': 'json'
}
-
-# Bot API settings
-BOT_API_KEY = env('BOT_API_KEY')