From aa198710d1020f7688d5b9bcdd55bf7f61937e22 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sun, 17 Apr 2016 22:46:10 +0000 Subject: [PATCH] Added allowed_hosts --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index ec3773b..e1994eb 100644 --- a/settings.py +++ b/settings.py @@ -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'): -- GitLab