Found the following information here. Here’s how you can automatically create a superuser when syncing your db:
python manage.py dumpdata auth > initial_data.json
python manage.py syncdb
Make sure to modify the initial.json file, if you want to change the name/mail of the superuser.
0 Responses to “django create superuser automatically on syncdb”