aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-29 18:17:29 +0200
committerGravatar GitHub <[email protected]>2019-09-29 18:17:29 +0200
commited38ec2f79fab4758c1e708bb321dc23930f8fe0 (patch)
tree7a57dd244ea83ab8facbc0e573aabed6dd3b4dcb /pydis_site
parentAdd static images for wiki contributing guides (#266) (diff)
parentMerge branch 'master' into new-managepy (diff)
Merge pull request #265 from python-discord/new-managepy
Custom `manage.py` Entry Point Script
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/settings.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 3f6cd94a..4534f54b 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -30,12 +30,19 @@ DEBUG = env('DEBUG')
# SECURITY WARNING: keep the secret key used in production secret!
if DEBUG:
- ALLOWED_HOSTS = [
- 'pythondiscord.local',
- 'admin.pythondiscord.local',
- 'api.pythondiscord.local',
- 'staff.pythondiscord.local',
- ]
+ ALLOWED_HOSTS = env.list(
+ 'ALLOWED_HOSTS',
+ default=[
+ 'pythondiscord.local',
+ 'api.pythondiscord.local',
+ 'admin.pythondiscord.local',
+ 'staff.pythondiscord.local',
+ 'web',
+ 'api.web',
+ 'admin.web',
+ 'staff.web'
+ ]
+ )
SECRET_KEY = secrets.token_urlsafe(32)
elif 'CI' in os.environ: