On Wed, 24 Aug 2016, Andromeda Yelton wrote:
> My feeling/practice on apps is: each app is a one-word informative noun.
> It contains the models that are logically grouped under that noun (and the
> views, urls, etc required to interact with those models on the front end).
Andromeda,
So are table names.
> If there isn't a single word that logically represents all my models, then
> they need to be separated into multiple apps. (And if models.py has gotten
> long enough that it's unwieldy, it probably wants to be split.)
>
> So, e.g., "companies" or "invoices" or "customers" or "reports" are all
> perfectly decent app concepts.
Got it, thanks.
> Also, _Two Scoops of Django_ is a helpful book for developing Django best
> practice intuitions.
I have the one from django-1.5; the latest is for -1.8. Since the current
version is 1.10 I see no reason to get a newer, but still two versions
behind, copy.
Thanks very much,
Rich
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment