Answers for "create fixtures django"

0

create fixtures django

To dump data:
python manage.py dumpdata app.model_name --indent 4 > fixtures/file_name.json

To load data:
python manage.py loaddata fixtures/model_name.json --app app.model_name
Posted by: Guest on April-04-2021
0

create fixtures django

python manage.py dumpdata app.model_name --indent 4 > fixtures/file_name.json
Posted by: Guest on April-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language