I want to backup my django users using python manage.py dump data
How to do that?
I want to backup my django users using python manage.py dump data
How to do that?
Just use the following command
python manage.py dumpdata auth.User > users.json
this will create an user.json file
to restore this just type the following command
python manage.py loaddata < users.json
To backup Other model Item use te following command
python manage.py dumpdata app_name.ModelName > backup.json