Comment

Comment by leetrout

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. .

parent leetrout 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton