Django dumpdata/loaddata


/ Published in: Django
Save to your folder(s)

Commands to dump and load a database in django


Copy this code and paste it in your HTML
  1. python manage.py dumpdata > my_db.json
  2.  
  3. python manage.py loaddata my_db.json

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.