I want to auto run manage.py createsuperuser on django but it seams that there is no way of setting a default password.
How can I get this?
A solution based on Adam Charnock's approach above is available as a Python package by now. It takes three steps:
Install: pip install django-createsuperuserwithpassword
Activate: INSTALLED_APPS += ("django_createsuperuserwithpassword", )
Apply:
python manage.py createsuperuserwithpassword \
--username admin \
--password admin \
--email admin@example.org \
--preserve
That's it.