From 3a12b45f087224d9951919ae42458296be406791 Mon Sep 17 00:00:00 2001 From: lan Date: Tue, 13 Dec 2022 17:55:25 +0800 Subject: [PATCH] update:adjust file structure --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 0b692b5..c6ddd37 100644 --- a/main.py +++ b/main.py @@ -21,8 +21,7 @@ DATA_ROOT = Path(settings.DATA_ROOT) if not DATA_ROOT.exists(): DATA_ROOT.mkdir(parents=True) -STATIC_URL = settings.STATIC_URL -app.mount(STATIC_URL, StaticFiles(directory=DATA_ROOT), name="static") +app.mount(settings.STATIC_URL, StaticFiles(directory=DATA_ROOT), name="static") @app.on_event('startup')