diff options
author | 2018-08-13 23:35:41 +0200 | |
---|---|---|
committer | 2018-08-13 23:35:41 +0200 | |
commit | 045e92a1a462e561ba76a06928986230fec28297 (patch) | |
tree | b3484d04958978d1f5cc61114ecb9f44713c37ea | |
parent | Namespace `home:index` URL. (diff) |
Add subdomains to `ALLOWED_HOSTS`.
-rw-r--r-- | pysite/settings.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pysite/settings.py b/pysite/settings.py index 5d770ca7..cf89bb40 100644 --- a/pysite/settings.py +++ b/pysite/settings.py @@ -31,10 +31,22 @@ DEBUG = env('DEBUG') # SECURITY WARNING: keep the secret key used in production secret! if DEBUG: - ALLOWED_HOSTS = ['pythondiscord.local'] + ALLOWED_HOSTS = [ + 'pythondiscord.local', + 'admin.pythondiscord.local', + 'api.pythondiscord.local', + 'staff.pythondiscord.local', + 'wiki.pythondiscord.local' + ] SECRET_KEY = "+_x00w3e94##2-qm-v(5&-x_@*l3t9zlir1etu+7$@4%!it2##" else: - ALLOWED_HOSTS = ['pythondiscord.com'] + ALLOWED_HOSTS = [ + 'pythondiscord.com', + 'admin.pythondiscord.com', + 'api.pythondiscord.com', + 'staff.pythondiscord.local', + 'wiki.pythondiscord.local' + ] SECRET_KEY = env('SECRET_KEY') |