fix dumbest bug from django guide (i will find them)
This commit is contained in:
parent
0838dad019
commit
3623860302
@ -23,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = bool(os.environ.get("DJANGO_DEBUG", default=0)) or platform == "win32"
|
DEBUG = bool(int(os.environ.get("DJANGO_DEBUG", default=0))) or platform == "win32"
|
||||||
|
|
||||||
def load_insecure_key():
|
def load_insecure_key():
|
||||||
print("Warning: Insecure SECRET_KEY loaded")
|
print("Warning: Insecure SECRET_KEY loaded")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user