|
|
|
|
|
by leetrout
1055 days ago
|
|
Strong opinion: DO NOT break up your project into apps. Make 1 app called core or common of whatever and replace models.py with models/<namespace_or_domain>.py and import those into models/__init__.py Everyone jumps into apps with foreign keys across app boundaries and it makes a mess of things from the start that doesnt buy you anything. 1 app. 1 set of migrations. Turn models, views, etc into a package instead of the single file module. Its the one thing I wish the docs would prescribe and demonstrate for new project advice. . |
|
Do not call it core. There's an existing app or module or something with that name and this will introduce hard-to-diagnose bugs. Common is preferable.