更新了settings.py的内容,在开发环境和生产环境统一

This commit is contained in:
2025-12-10 17:11:43 +08:00
parent 82c17639d7
commit d4bcf322d7
3 changed files with 35 additions and 7 deletions

8
.env Normal file
View File

@@ -0,0 +1,8 @@
# Django settings
SECRET_KEY=django-insecure-&_@v3e5@!x+fa5273@v=^&02p@(#b89=p^06ifule17*p+g@u8
DEBUG=True
ALLOWED_HOSTS=127.0.0.1,localhost
# Static and media files
STATIC_ROOT=static
MEDIA_ROOT=media