Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
Make settings.py use env variable for the DEBUG value
  • Loading branch information
dmytrotsko committed May 24, 2024
1 parent 04dae37 commit 7390420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/signal_documentation/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""
import os
import sys
from distutils.util import strtobool
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -47,7 +48,7 @@


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


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

0 comments on commit 7390420

Please sign in to comment.