Ticket #15578: doc_patch.diff
File doc_patch.diff, 1.0 KB (added by , 13 years ago) |
---|
-
initial-data.txt
116 116 </ref/django-admin>`. Refer to the :doc:`manage.py documentation 117 117 </ref/django-admin>` for more information. 118 118 119 Note that if you have multiple SQL data files, there's no guarantee of 120 the order in which they're executed. The only thing you can assume is 121 that, by the time your custom data files are executed, all the 122 database tables already will have been created. 119 SQL data files are executed in the same order than their ordering 120 in the fixtures. 123 121 122 For example: 123 124 fixtures = ['foo','bar','baz'] 125 foo will be executed first then bar, then baz. 126 127 However, fixtures are not loaded for one application but for any 128 applications which contains this fixture. 129 130 Therefore, you should also take into account the order in which application 131 are defined. 132 133 124 134 .. admonition:: Initial SQL data and testing 125 135 126 136 This technique *cannot* be used to provide initial data for