Last active
October 6, 2021 09:06
-
-
Save muradddd/1ef6d0063b9b0fee17c855b6fb59d23d to your computer and use it in GitHub Desktop.
django commands
This file contains 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
python manage.py dumpdata --natural-foreign -e contenttypes -e auth.Permission -e admin.Logentry > data.json |
This file contains 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
python manage.py loaddata data.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment