File size: 412 Bytes
b856986 27be269 b856986 8450c71 b856986 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from App.discovery import discover_models
import asyncio
DATABASE_URL = "sqlite://db.sqlite3" # Example: SQLite for local development
TORTOISE_ORM = {
"connections": {"default": DATABASE_URL},
"apps": {
"models": {
"models": discover_models("Model.py"), # Automatically discover models in the "models" directory
"default_connection": "default",
}
},
}
|