Template
mirror of
https://github.com/Nekidev/uv-fastapi-tortoise.git
synced 2026-09-12 19:57:25 +00:00
Update database configuration variable in lifespan.py
This commit is contained in:
@@ -20,7 +20,7 @@ async def on_startup():
|
||||
|
||||
await command.upgrade()
|
||||
|
||||
await Tortoise.init(config=settings.CONFIG)
|
||||
await Tortoise.init(config=settings.DATABASE)
|
||||
|
||||
|
||||
async def on_shutdown():
|
||||
|
||||
Reference in New Issue
Block a user