Skip to content

Commit

Permalink
Add more allowed hosts for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
emperorcezar committed Nov 5, 2015
1 parent d71bb29 commit 7f81411
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chipy_org/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ def env_list(key, defaults=[], delimiter=','):
DEBUG = env_var('DEBUG', False)
TEMPLATE_DEBUG = DEBUG

ALLOWED_HOSTS = ['chipy.org', 'www.chipy.org', 'chipy.herokuapp.com', 'chipy-149.herokuapp.com']

if DEBUG:
ALLOWED_HOSTS.append('localhost:8000')
ALLOWED_HOSTS = ['chipy.org', 'www.chipy.org', 'chipy.herokuapp.com', 'chipy-149.herokuapp.com',
'localhost:8000', 'www.localhost:8000', 'www.localhost']

ALLOWED_HOSTS = env_list("ALLOWED_HOSTS", ALLOWED_HOSTS)

Expand Down

0 comments on commit 7f81411

Please sign in to comment.