In general, we use the following command to generate a fixture for one app:

python dumpdata appname --indent=4 --output=<path-to-your-output-file>


For example, to generate a fixture for the tendenci stories app:

python dumpdata stories --indent=4 --output=stories.json

To generate only for a specific model Rotator, for instance:

python dumpdata stories.rotator --indent=4 --output=stories_rotator.json


For more details on dumpdata and fixtures, please refer to Django's official documentaion.

Contact us to upgrade to Tendenci

The open source solution chosen by associations around the world.

Want to talk? (281) 497-6567

Sign up for Tendenci - The Open Source AMS

No per user pricing. Unlimited admins.

Demo Now

Have Questions?

Contact us!

Site Search