From b7f317a379365f4e059b9854ea4ee462b1f52dcc Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Sat, 14 May 2022 21:34:54 -0600 Subject: [PATCH] Add extra urls to allowed hosts --- src/ptcoffee/settings.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ptcoffee/settings.py b/src/ptcoffee/settings.py index a38a457..5a67637 100644 --- a/src/ptcoffee/settings.py +++ b/src/ptcoffee/settings.py @@ -7,8 +7,14 @@ from .config import * BASE_DIR = Path(__file__).resolve().parent.parent # Add Your Required Allow Host -if DEBUG == False: - ALLOWED_HOSTS = ['ptcoffee-dev.windmillapps.org', 'ptcoffee.com', 'www.ptcoffee.com'] +if not DEBUG: + ALLOWED_HOSTS = [ + 'ptcoffee-dev.windmillapps.org', + 'ptcoffee.com', + 'www.ptcoffee.com', + 'porttownsendcoffee.com', + 'www.porttownsendcoffee.com', + ] else: ALLOWED_HOSTS = ['192.168.68.106', '127.0.0.1', 'localhost']