fix - device pre register & exception handling with json response

This commit is contained in:
2025-11-09 14:35:14 +03:30
parent 0c5142aff3
commit c0f289284f
7 changed files with 118 additions and 9 deletions

View File

@@ -33,7 +33,8 @@ if not os.getenv("RUNNING_IN_DOCKER"):
SECRET_KEY = os.environ.get("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = bool(os.environ.get("DEBUG", default=0))
# DEBUG = bool(os.environ.get("DEBUG", default=0))
DEBUG = os.getenv("DEBUG", "True").lower() in ("1", "true", "yes")
ASGI_APPLICATION = "Rasaddam_Backend.asgi.application" # noqa