Repository navigation
Replies: 1 comment
|
For example, if account = fields.ForeignKeyField("discord.Account", related_name="events")One app can also collect models from several Python modules: modules={"discord": ["database", "database_extra"]}Multiple apps become useful when groups of models need different default database connections. The full For a small project with one database, a single label such as |
Uh oh!
There was an error while loading. Please reload this page.
What is the purpose of specifying multiple module names in Tortoise ORM? Every time I use this library I have to specify not only the list of file paths to discover models from but also I am required to group them by using dictionary and assigning name to it
What are the cases where we would actually need to have this functionality in our project?
Personally, I cannot think of any
All reactions