πŸŽ„πŸΎ We’ll be spending time with our families from December 24th to January 1st. Wishing you a joyous, safe, and peaceful holiday season, and we look forward to embracing a bright New Year together! β˜ƒοΈ Much love from the TendenciDEV Team πŸΎπŸŽ„

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

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

 

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

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

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

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

 

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

https://docs.djangoproject.com/en/1.8/ref/django-admin/#dumpdata-app-label-app-label-app-label-model

https://docs.djangoproject.com/en/1.8/howto/initial-data/

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



I agree

Our site saves small pieces of text information (cookies) on your device in order to deliver better experience and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By browsing our website without changing the browser settings you grant us permission to store that information on your device. See our Privacy Policy