Template
mirror of
https://github.com/Nekidev/uv-fastapi-tortoise.git
synced 2026-09-12 19:57:25 +00:00
26 lines
514 B
Python
26 lines
514 B
Python
import os
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
load_dotenv()
|
|
|
|
|
|
DEBUG = os.getenv("DEBUG", "False").lower() in ("true", "1", "t")
|
|
|
|
|
|
DATABASE = {
|
|
"connections": {"default": os.getenv("DATABASE_URL", "sqlite://db.sqlite3")},
|
|
"apps": {
|
|
"models": {
|
|
"models": [
|
|
"project.db.models.example",
|
|
"aerich.models", # Keep this one for migrations.
|
|
],
|
|
"default_connection": "default",
|
|
}
|
|
},
|
|
"use_tz": True,
|
|
"timezone": "UTC",
|
|
}
|