mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-21 10:13:18 +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
|
protocols["http"] = django_asgi_app
|
||||||
|
|
||||||
application = ProtocolTypeRouter(protocols)
|
application = ProtocolTypeRouter(protocols)
|
||||||
|
@ -40,7 +40,7 @@ with open("version.json") as f:
|
|||||||
VERSION = json.load(f)
|
VERSION = json.load(f)
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# 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
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
|
Reference in New Issue
Block a user