Ajouter Dockerfile, requirements.txt, et mettre à jour les imports dans models.py et security.py

This commit is contained in:
Pierre Berthe 2024-04-12 10:46:48 +02:00
parent 26020ecbc1
commit c6579868d7
4 changed files with 41 additions and 6 deletions

View file

@ -61,7 +61,7 @@ SQLITE_FILE_NAME = "database.db"
DATABASE_URL = f"sqlite:///{SQLITE_FILE_NAME}"
connect_args = {"check_same_thread": False}
engine = create_engine(DATABASE_URL, echo=True, connect_args=connect_args)
engine = create_engine(DATABASE_URL, connect_args=connect_args)
def create_db_and_tables():