From f840913d1b7b6127ef0000adef08b6e9435f6281 Mon Sep 17 00:00:00 2001 From: tsb1995 <47466105+tsb1995@users.noreply.github.com> Date: Thu, 24 Dec 2020 21:06:45 -0800 Subject: [PATCH] Add heroku to allowed hosts --- candalbjj/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/candalbjj/settings.py b/candalbjj/settings.py index 837c719..93c7fca 100644 --- a/candalbjj/settings.py +++ b/candalbjj/settings.py @@ -24,9 +24,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = '@nta)jv(9i6mauda)^ox6_&3&gcyr-+g$krr+4#=sq$te^nxr_' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False -ALLOWED_HOSTS = [] +# Allow heroku to host as well as local server +ALLOWED_HOSTS = ['candalbjj.herokuapp.com', '127.0.0.1:8000'] # Application definition