Add Dump database to the readme

This commit is contained in:
2019-01-16 23:39:57 +01:00
parent 7708e71977
commit 798ddf40e8

View File

@ -6,8 +6,11 @@ python3 manage.py makemigrations
###Create admin tables
python3 manage.py migrate
###Populate the database
python3 manage.py loaddata fixtures/db.json
###Populate the database
python3 manage.py loaddata fixtures/db.json
###Dump the database into file
python3 manage.py dumpdata > fixtures/db.json
###Create admin user
python3 manage.py createsuperuser --email admin@gmail.com --username admin