Skip to content

Instantly share code, notes, and snippets.

@florianmartens
Created August 9, 2020 13:02
Show Gist options
  • Save florianmartens/37d39edd6f48fecd52c088a57835b43f to your computer and use it in GitHub Desktop.
Save florianmartens/37d39edd6f48fecd52c088a57835b43f to your computer and use it in GitHub Desktop.
# dump database data for relavant apps to fixture directory
python manage.py dumpdata --indent 4 answers dependencies modules options questions respondents survey_explainers survey_results surveys tags tenants users > fixtures/initial_data.json
@florianmartens
Copy link
Author

florianmartens commented Dec 1, 2020

python manage.py dumpdata --indent 4 dependencies.prebuiltDependency modules.PrebuiltModule options.PrebuiltOption questions.PrebuiltQuestion survey_explainers.PrebuiltExplainer surveys.PrebuiltSurvey > fixtures/export_data.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment