Views various fixes

This commit is contained in:
ThePetrovich 2025-07-03 22:20:18 +08:00
parent 5af3b95c8d
commit 51415765da
4 changed files with 41 additions and 12 deletions

View file

@ -30,7 +30,7 @@ SECRET_KEY = os.getenv(
'SECRET_KEY', 'django-insecure-np(nxnh6mw)v4pa2n2z3pl_5&!2z$jshhak9r3v=y1u9rd*sl!')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv('DEBUG', 'False') == 'True'
DEBUG = os.getenv('DEBUG', 'True') == 'True'
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost').split(',')