Allow all hosts in debug mode

This commit is contained in:
MatthiasSaihttam 2020-11-24 10:43:13 -08:00
parent a463bc36c6
commit 7f52c5de98
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ SECRET_KEY = 'qdm4_0b)3^)k$6r($!o^a7&0l#^6)@g2wr!x0r40ii@9otfnwo'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ["192.168.1.65", "thoughts.learnerpages.com", "localhost"]
ALLOWED_HOSTS = ["thoughts.learnerpages.com"]
if DEBUG:
ALLOWED_HOSTS += ["*"]
# Application definition