Django Auto User (DAU) is a Django (Python) library for the automatic creation of users.
Use the package manager pip to install Django Auto User.
pip install dau
Add 'dau' to INSTALLED APPS after 'django.contrib.admin' in your settings.py:
INSTALLED_APPS = [
...
'django.contrib.admin',
'dau',
...
]
Then, just add DJANGO_AUTO_USER settings to your settings.py file as:
DJANGO_AUTO_USER = [
{
'username':'admin',
'email':'admin@admin.com',
'password':'adminpass',
'is_superuser':True,
'is_staff':True,
'is_active':True
}
]
Make your migrations with:
python manage.py makemigrations
python manage.py migrate
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.