update:adjust file structure

This commit is contained in:
lan
2022-12-13 17:55:25 +08:00
parent 319791a387
commit 3a12b45f08
+1 -2
View File
@@ -21,8 +21,7 @@ DATA_ROOT = Path(settings.DATA_ROOT)
if not DATA_ROOT.exists(): if not DATA_ROOT.exists():
DATA_ROOT.mkdir(parents=True) DATA_ROOT.mkdir(parents=True)
STATIC_URL = settings.STATIC_URL app.mount(settings.STATIC_URL, StaticFiles(directory=DATA_ROOT), name="static")
app.mount(STATIC_URL, StaticFiles(directory=DATA_ROOT), name="static")
@app.on_event('startup') @app.on_event('startup')