1👍
✅
You can create fixture from default user model by below command:
python manage.py dumpdata auth.user -o FIXTURE_ADDRESS
and load initial data by below command:
python manage.py loaddata FIXTURENAME
that FIXTURENAME
is name of your fixture in one of FIXTURE_DIRS
.
The FIXTURE_DIRS
by default is fixtures.
Source:stackexchange.com