We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 167dc10 commit bbe308eCopy full SHA for bbe308e
1 file changed
DR_Detection/settings.py
@@ -27,13 +27,13 @@
27
SECRET_KEY = "django-insecure-i+4mijs7vqvx18zz08p93tldpvqr8$&u$x=df599h!y6p-a39^"
28
29
# SECURITY WARNING: don't run with debug turned on in production!
30
-DEBUG = True
+DEBUG = os.getenv("DEBUG", "False") == "True"
31
32
ALLOWED_HOSTS = ["localhost","127.0.0.1"]
33
34
# 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"))
+if os.getenv("AZURE_URL"):
+ ALLOWED_HOSTS.append(os.getenv("AZURE_URL"))
37
38
# Application definition
39
0 commit comments