Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to dump a database using manage.py

$ python manage.py dumpdata --natural-foreign --natural-primary -e contenttypes -e auth.Permission --indent 2 > dump.json
Source by www.coderedcorp.com #
 
PREVIOUS NEXT
Tagged: #dump #database
ADD COMMENT
Topic
Name
6+2 =