django-createuser
django-createuser is a package that allows to create users for Django application with ./manage.py command.
Installation
Install with pip or pipenv:
pip install django-createuser
Add django_createuser to your installed apps in your settings.py file:
INSTALLED_APPS = [
'django_createuser',
...
]
Commands
createuser
Used to create a user.
positional arguments:
username
Login; required
optional arguments:
- -h, --help
show this help message and exit
- --email EMAIL
Email; required
- --first_name FIRST_NAME
First name; optional
- --last_name LAST_NAME
Last name; optional
- --password PASSWORD
Password; optional
- --is-staff
Staff status; optional, default is False
- --is-superuser
Superuser status; optional, default is False
- -g GROUPS, --groups GROUPS
List of user’s groups; optional, comma is a separator
- --database DATABASE
Specifies the database to use; optional, default is "default"
- --version
show program’s version number and exit
- -v LEVEL, --verbosity LEVEL
Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output
- --settings SETTINGS
The Python path to a settings module, e.g. "myproject.settings.main". If this isn’t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.
- --pythonpath PYTHONPATH
A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".
- --traceback
Raise on CommandError exceptions
- --no-color
Don’t colorize the command output.
- --force-color
Force colorization of the command output.
Documentation
License
Copyright © 2019, Piotr Roszatycki
This software is distributed under the GNU Lesser General Public License (LGPL 3 or greater).
Metadata
Release files for django-createuser 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-createuser-0.1.0.tar.gz | 19.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_createuser-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / django-createuser-0.1.0.tar.gz
| Download URL | django-createuser-0.1.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b1a4d103c12ff014e54bb4f4cd7a5ccb8f560a14d8809def76cc6a782798146
|
|
BLAKE2b-256 checksum How to use checksums |
71844ea57b6ae79a811727b696ef183229f00759bdb6e50807c0b351bab78c70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
|
Release files / django_createuser-0.1.0-py2.py3-none-any.whl
| Download URL | django_createuser-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
882e968a9feeb39a1d82afc08cf2c91c66a9d87661c9f75c1fd0be6f818f32b9
|
|
BLAKE2b-256 checksum How to use checksums |
1aafc002c51ba32207bd2eaae30e09dab7d343e4f795d6b7c40412556482b460
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
|