update:adjust file structure
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user