Changes between Version 1 and Version 2 of CookBookSplitModelsToFiles
- Timestamp:
- May 4, 2006, 3:27:21 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookSplitModelsToFiles
v1 v2 2 2 3 3 To split models across multiple files, you can do the following (works at least with revision 2819): 4 5 The 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. 4 6 5 7 {{{apps/polls/models/__init__.py}}}: