Merge pull request #1912 from jerryfletcher21/development-option-cast

cast DEVELOPMENT config to bool
This commit is contained in:
KoalaSat
2025-05-10 22:39:54 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ protocols["websocket"] = AuthMiddlewareStack(
)
)
if config("DEVELOPMENT", default=False):
if config("DEVELOPMENT", cast=bool, default=False):
protocols["http"] = django_asgi_app
application = ProtocolTypeRouter(protocols)

View File

@ -40,7 +40,7 @@ with open("version.json") as f:
VERSION = json.load(f)
# SECURITY WARNING: don't run with debug turned on in production!
if config("DEVELOPMENT", default=False):
if config("DEVELOPMENT", cast=bool, default=False):
DEBUG = True
ALLOWED_HOSTS = [