Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #create #fixtures #django
ADD COMMENT
Topic
Name
8+8 =