Skip to content
Snippets Groups Projects
Commit aa198710 authored by Ben Adida's avatar Ben Adida
Browse files

Added allowed_hosts

parent 8e687ea3
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ SECRET_KEY = get_from_env('SECRET_KEY', 'replaceme')
# If in production, you got a bad request (400) error
#More info: https://docs.djangoproject.com/en/1.7/ref/settings/#allowed-hosts (same for 1.6)
ALLOWED_HOSTS = ['localhost'] # change to your allowed hosts
ALLOWED_HOSTS = get_from_env('ALLOWED_HOSTS', 'localhost').split(",")
# Secure Stuff
if (get_from_env('SSL', '0') == '1'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment