Changes between Version 11 and Version 12 of CookBookSplitModelsToFiles


Ignore:
Timestamp:
Oct 6, 2011, 1:04:07 AM (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookSplitModelsToFiles

    v11 v12  
    33To split models across multiple files, you can do the following (works at least with revision 2819).
    44
    5 The important thing to notice here is the {{{db_table}}} attribute in the {{{Meta}}} class. If that is omitted, a subsequent {{{manage.py syncdb}}} run will not pick up these models.
     5The important thing to notice here is the {{{db_table}}} and {{{app_label}}} attributes in the {{{Meta}}} class. If those are omitted, a subsequent {{{manage.py syncdb}}} run will not pick up these models.
    66
    77'''NOTE:''' When #3591 gets applied you won't need the {{{Meta}}} class anymore, so if this link: #3591 has a strike-through and you are running svn, you don't need the {{{Meta}}} class.
Back to Top