Created
August 9, 2020 13:02
-
-
Save florianmartens/37d39edd6f48fecd52c088a57835b43f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
python manage.py dumpdata --indent 4 dependencies modules options questions survey_explainers surveys > fixtures/initial_data.json