Add 127.0.0.1 to Allowed_Hosts for debug

This commit is contained in:
Johnathan Graydon
2018-03-25 14:58:14 +01:00
parent 9c2603557c
commit b157e3b187

View File

@@ -35,6 +35,7 @@ if STAGING:
if DEBUG:
ALLOWED_HOSTS.append('localhost')
ALLOWED_HOSTS.append('example.com')
ALLOWED_HOSTS.append('127.0.0.1')
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
if not DEBUG: