Changes between Version 1 and Version 2 of CookBookSplitModelsToFiles


Ignore:
Timestamp:
May 4, 2006, 3:27:21 AM (19 years ago)
Author:
Malcolm Tredinnick <malcolm@…>
Comment:

Added a note about app_label being important (it is the secret key to the whole thing)

Legend:

Unmodified
Added
Removed
Modified
  • CookBookSplitModelsToFiles

    v1 v2  
    22
    33To split models across multiple files, you can do the following (works at least with revision 2819):
     4
     5The important thing to notice here is the {{{app_label}}} attribute in the {{{Meta}}} class. If that is omitted, a subsequent {{{manage.py syncdb}}} run will not pick up these models.
    46
    57{{{apps/polls/models/__init__.py}}}:
Back to Top