edited path for creation upload folder

This commit is contained in:
DmitryGantimurov 2023-07-27 23:25:27 +03:00
parent 8c81935004
commit 9e98a224e3

View File

@ -32,7 +32,7 @@ templates = Jinja2Templates(directory="./front/dist")
app.mount("/static", StaticFiles(directory = "./front/dist"))
if not os.path.exists("./uploads"):
os.mkdir("C:/Users/38812/porridger/uploads")
os.mkdir("./uploads")
app.mount("/uploads", StaticFiles(directory = "./uploads"))
# # Загружаем стихи