There was an error while loading. Please reload this page.
2 parents 04dae37 + 7390420 commit 5fb5a48Copy full SHA for 5fb5a48
1 file changed
src/signal_documentation/settings.py
@@ -11,6 +11,7 @@
11
"""
12
import os
13
import sys
14
+from distutils.util import strtobool
15
from pathlib import Path
16
from typing import Any
17
@@ -47,7 +48,7 @@
47
48
49
50
# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
51
+DEBUG = bool(strtobool(os.getenv('DEBUG', 'True')))
52
53
54
# SECURITY WARNING: keep the secret key used in production secret!
0 commit comments