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


You need to login to view comments.