Automatic user creation at Django startup.
Project description
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
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
dau-0.1.3-py3-none-any.whl
(6.3 kB
view details)
File details
Details for the file dau-0.1.3.tar.gz
.
File metadata
- Download URL: dau-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.6.8 Windows/7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb5435f8b12eb43a3ef8bd470edb1838492016d942b24369149271039e973a8 |
|
MD5 | 7fbfdc79970d7702f85aff7f017f0ae0 |
|
BLAKE2b-256 | f5fa63c3fd45c556ecb594e70b47d91722bd591f597c7820925bb879dae250d4 |
File details
Details for the file dau-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: dau-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.6.8 Windows/7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e71e6afaf4a0a68c2853bf55cdc8e41e631b10bd61becae55c3b7757533c3ef |
|
MD5 | fb8366e704caf9ad2677ea7f2410aad8 |
|
BLAKE2b-256 | 0ae93443016a925470e0fe7c44cc3880aefea2dc8b87c4e11ca51cf8b138a24b |