settings: Allow localhost in debug mode.

This commit is contained in:
Brett Smith 2017-11-03 11:46:48 -04:00
parent e724cfe593
commit b79a3617f0

View file

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