Skip to content

Commit bbe308e

Browse files
Env changes
1 parent 167dc10 commit bbe308e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

DR_Detection/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
SECRET_KEY = "django-insecure-i+4mijs7vqvx18zz08p93tldpvqr8$&u$x=df599h!y6p-a39^"
2828

2929
# SECURITY WARNING: don't run with debug turned on in production!
30-
DEBUG = True
30+
DEBUG = os.getenv("DEBUG", "False") == "True"
3131

3232
ALLOWED_HOSTS = ["localhost","127.0.0.1"]
3333

3434
# Add your website to ALLOWED_HOSTS based on an environment variable
35-
if os.getenv("WEBSITE_HOSTNAME"):
36-
ALLOWED_HOSTS.append(os.getenv("WEBSITE_HOSTNAME"))
35+
if os.getenv("AZURE_URL"):
36+
ALLOWED_HOSTS.append(os.getenv("AZURE_URL"))
3737

3838
# Application definition
3939

0 commit comments

Comments
 (0)