Commit efa15ccc authored by Roman Desyatskii's avatar Roman Desyatskii

config setting database

parent a6b84ecc
try:
from core.settings import database_url
import db.models
models = ['aerich.models', 'db.models']
except ImportError:
from src.app.core.settings import database_url
models = ['aerich.models', 'src.app.db.models', 'src.app.db.person', 'src.app.db.genre']
TORTOISE_ORM = {
"connections": {"default": database_url},
"apps": {
"models": {
"models": models,
"default_connection": "default",
},
},
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment