cast DEVELOPMENT config to bool

This commit is contained in:
jerryfletcher21
2025-05-09 22:03:21 +02:00
parent e2211ee10d
commit 6f8d351d93
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 = [