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',