Skip to main content

Automatic user creation at Django startup.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dau-0.1.3.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

dau-0.1.3-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page