标注一下,这是一个可以启动的版本

This commit is contained in:
2025-04-17 16:25:44 +08:00
parent b0379e64c9
commit 434e1af3e8
9 changed files with 30 additions and 113 deletions

View File

@ -83,7 +83,7 @@ STATIC_URL路由访问
STATIC_ROOT静态文件目录绝对路径
官方文档https://fastapi.tiangolo.com/tutorial/static-files/
"""
STATIC_ENABLE = True
STATIC_ENABLE = False
STATIC_URL = "/media"
STATIC_DIR = "static"
STATIC_ROOT = os.path.join(BASE_DIR, STATIC_DIR)