We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9ba6a2 commit 1d4abfaCopy full SHA for 1d4abfa
core/settings.py
@@ -25,7 +25,13 @@
25
)
26
27
# SECURITY WARNING: don't run with debug turned on in production!
28
-DEBUG = int(os.environ.get("DEBUG", default=1))
+DEBUG = False
29
+
30
+try:
31
+ # expects 1 or 0
32
+ DEBUG = int(os.environ.get("DEBUG", default=1))
33
+except:
34
+ DEBUG = False
35
36
ALLOWED_HOSTS = os.getenv("DJANGO_ALLOWED_HOSTS", "*").split(" ")
37
0 commit comments