* Disabled DEBUG mode

This commit is contained in:
Phil Zhitnikov 2023-08-19 20:12:28 +04:00
parent 2fe77442c3
commit 9b762e6c57

View File

@ -26,7 +26,7 @@ CDEK_CLIENT_ID = '***REMOVED***'
CDEK_CLIENT_SECRET = '***REMOVED***' CDEK_CLIENT_SECRET = '***REMOVED***'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = bool(int(os.environ.get("DJANGO_DEBUG") or 0))
DISABLE_PERMISSIONS = False DISABLE_PERMISSIONS = False
DISABLE_CORS = True DISABLE_CORS = True