Skip to content

Commit 7390420

Browse files
authored
Update settings.py
Make settings.py use env variable for the DEBUG value
1 parent 04dae37 commit 7390420

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/signal_documentation/settings.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212
import os
1313
import sys
14+
from distutils.util import strtobool
1415
from pathlib import Path
1516
from typing import Any
1617

@@ -47,7 +48,7 @@
4748

4849

4950
# SECURITY WARNING: don't run with debug turned on in production!
50-
DEBUG = True
51+
DEBUG = bool(strtobool(os.getenv('DEBUG', 'True')))
5152

5253

5354
# SECURITY WARNING: keep the secret key used in production secret!

0 commit comments

Comments
 (0)