Fixture docs could be more clear.
|Reported by:||Oroku Saki||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The docs mention creating initial_data.[format], etc for auto-popping data during
manage.py syncdb. The docs don't make mention of where to place this file. If they can go anywhere it might be better to mention that, as well as mention where the search begins. I would want to put it there, for convention, and efficiency (if it makes a difference for speed).
On a related note,the
manage.py loaddata fixturename appears (I haven't used it yet) to be able to accept multiple files. This might be useful in separating fixtures by application. The
initial_data, on cursory glance, doesn't appear from the docs to work this way. Having not used either method, I would be at the mercy of trial and error to see if this is correct. It might be good to mention in both versions (loaddata, and the initial_data version) if you can have multiple fixture files, whether they can exist anywhere, and where they might be best placed.
Change History (6)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|