On Wed, Aug 8, 2012 at 3:27 PM, Mike Dewhirst <[email protected]> wrote: > I would like to understand the "formula" for splitting a monolithic > models.py into ./models/<classname>.py files. > > Can someone point to somewhere in the docs or source which sets out the > logic?
There isn't really any "logic" to set out -- you just need to add the "app_label" meta argument to any model that isn't in a file named models.py. https://docs.djangoproject.com/en/dev/ref/models/options/#app-label If you want some examples of the technique in action, Django's test suite contains an example in the "tests/modeltests/model_package" directory. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

