Closed filipeximenes closed 11 years ago
I think that a management command would be perfect to do this, and maybe do it automatically on 'syncdb' or 'migrate' just like fixtures?
I think this could be done as an extension library, since it is not for testing purposes. I'll reference it in the README
Hi, I'm using Model Mommy to generate my projects initial data. I'm finding it very useful and it's way better than writing fixtures. Is it a good idea to have a model mommy command to automatically load initial data? Something like what
loaddata
does withinitial_data.json
files. Maybe look for files like:mommy_init_data.py
.