I like having known test data during development. As usual, Django makes this simple. Create your model, use the admin interface to populate your test data, then use the dumpdata command to create a default fixture.
1 2 3 4 | |
The -e switch excludes an app from the dump. You can use it multiple times to exclude multiple apps.
Because the filename is initial_data.[xml|json|yaml], it will be executed next time we do a syncdb. Cool.
See Django documentation for more info.