settings: Don't FORCE_CANONICAL_HOSTNAME when DEBUG.

This commit is contained in:
Brett Smith 2016-12-02 22:17:59 -05:00
parent 6f540a0e3f
commit 993f4bc72f

View file

@ -24,8 +24,7 @@ from djangocommonsettings import *
SITE_ID = 2
ROOT_URLCONF = 'conservancy.urls'
FORCE_CANONICAL_HOSTNAME = "sfconservancy.org"
FORCE_CANONICAL_HOSTNAME = False if DEBUG else 'sfconservancy.org'
ALLOWED_HOSTS = [ 'www.sfconservancy.org', 'aspen.sfconservancy.org', 'sfconservancy.org', u'104.130.70.210' ]