Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oc_lettings_site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['localhost', '127.0.0.1']
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '0.0.0.0', '*']


# Application definition
Expand Down
3 changes: 2 additions & 1 deletion oc_lettings_site/settings_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
DEBUG = os.environ.get('DEBUG', 'False').lower() == 'true'

# Allowed hosts for production
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost,127.0.0.1').split(',')
#ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost,0.0.0.0,127.0.0.1,*').split(',')
ALLOWED_HOSTS = ['0.0.0.0']

# Add WhiteNoise to serve static files
INSTALLED_APPS = INSTALLED_APPS + ['whitenoise.runserver_nostatic']
Expand Down