Skip to content

AndreGuerra123/dau

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov

Django Auto User

Django Auto User (DAU) is a Django (Python) library for the automatic creation of users.

Installation

Use the package manager pip to install Django Auto User.

pip install dau

Usage

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

Contributing

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.

License

MIT

About

Automatic user creation in Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages