From b79a3617f0238ce51ed13339d9c493b713c36907 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Fri, 3 Nov 2017 11:46:48 -0400 Subject: [PATCH] settings: Allow localhost in debug mode. --- www/conservancy/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/conservancy/settings.py b/www/conservancy/settings.py index 302aac66..3ca18a8a 100644 --- a/www/conservancy/settings.py +++ b/www/conservancy/settings.py @@ -27,6 +27,8 @@ ROOT_URLCONF = 'conservancy.urls' FORCE_CANONICAL_HOSTNAME = False if DEBUG else 'sfconservancy.org' ALLOWED_HOSTS = [ 'www.sfconservancy.org', 'aspen.sfconservancy.org', 'sfconservancy.org', u'104.130.70.210' ] +if DEBUG: + ALLOWED_HOSTS.append('localhost') REDIRECT_TABLE = { 'www.sf-conservancy.org': 'sfconservancy.org',