Changes between Version 11 and Version 12 of CookBookSplitModelsToFiles
- Timestamp:
- Oct 6, 2011, 1:04:07 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookSplitModelsToFiles
v11 v12 3 3 To split models across multiple files, you can do the following (works at least with revision 2819). 4 4 5 The important thing to notice here is the {{{db_table}}} a ttribute in the {{{Meta}}} class. If that isomitted, a subsequent {{{manage.py syncdb}}} run will not pick up these models.5 The 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. 6 6 7 7 '''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.