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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/signal_documentation/settings.py

Lines changed: 2 additions & 1 deletion
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)