Skip to content

Commit 1d4abfa

Browse files
committed
Updates for RENDER Deployment
1 parent e9ba6a2 commit 1d4abfa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/settings.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
)
2626

2727
# SECURITY WARNING: don't run with debug turned on in production!
28-
DEBUG = int(os.environ.get("DEBUG", default=1))
28+
DEBUG = False
29+
30+
try:
31+
# expects 1 or 0
32+
DEBUG = int(os.environ.get("DEBUG", default=1))
33+
except:
34+
DEBUG = False
2935

3036
ALLOWED_HOSTS = os.getenv("DJANGO_ALLOWED_HOSTS", "*").split(" ")
3137

0 commit comments

Comments
 (0)