Changes between Version 7 and Version 8 of CookBookSplitModelsToFiles


Ignore:
Timestamp:
Jan 12, 2008, 5:39:51 PM (16 years ago)
Author:
nara19
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookSplitModelsToFiles

    v7 v8  
    11= CookBook - [wiki:CookBookDataModels Data Models] - Splitting models across multiple files =
    22
    3 To split models across multiple files, you can do the following (works at least with revision 2819; verified to work without the Meta class app_labels, with main branch revision 7013):
     3To split models across multiple files, you can do the following (works at least with revision 2819).
    44
    55The 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.
    66
    77'''NOTE:''' When #2982 gets applied you won't need the {{{Meta}}} class anymore, so if this link: #2982 has a strike-through and you are running svn, you don't need the {{{Meta}}} class.
     8
     9This has been verified to work without the Meta class app_labels, in the current main branch.
    810
    911{{{apps/polls/models/__init__.py}}}:
Back to Top