From 045e92a1a462e561ba76a06928986230fec28297 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Mon, 13 Aug 2018 23:35:41 +0200 Subject: Add subdomains to `ALLOWED_HOSTS`. --- pysite/settings.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'pysite') 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') -- cgit v1.2.3