Created
January 22, 2020 05:10
-
-
Save coderdipto/e280448acee38cff380dac5171c576d5 to your computer and use it in GitHub Desktop.
Django dumpdada / loaddata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dumpdata : Specific App | |
python manage.py dumpdata app > example.json | |
# Dumpdata : Specific Model | |
python manage.py dumpdata app.model > example.json | |
# Loaddata | |
python manage.py loaddata example.json | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment