mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-19 09:13:28 +00:00
cast DEVELOPMENT config to bool
This commit is contained in:
@ -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)
|
||||
|
@ -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 = [
|
||||
|
Reference in New Issue
Block a user