From b5917f85eb1f8044b1e1cb731c537ef058fe1fa7 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 7 May 2022 16:02:23 +0200 Subject: [PATCH] Create db directory --- testDB.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testDB.py b/testDB.py index e45bce4..06cccc4 100644 --- a/testDB.py +++ b/testDB.py @@ -1,10 +1,13 @@ from datetime import date +from os import makedirs from flask_security import hash_password from advlabdb import app, db, user_datastore from advlabdb.models import * +makedirs("db", exist_ok=True) + with app.app_context(): db.drop_all() db.create_all()