Django management command to create usable super users, programmatically
Project description
django-createsuperuserwithpassword
… provides a Django management command to create ready-to-login super users during development.
How to Use
1. Install
Install the pip package locally or globally:
pip install [--user] django-createsuperuserwithpassword
2. Activate
Enable the Django management command by extending your Django project settings:
INSTALLED_APPS += ("django_createsuperuserwithpassword", )
3. Apply
Call the command — e.g. from within a container entrypoint script — like this:
python manage.py createsuperuserwithpassword \
--username admin \
--password admin \
--email admin@example.org \
--preserve
Development
If you want to help fix a bug, an easy way to spin up a development environment is:
git clone https://github.com/hartwork/django-createsuperuserwithpassword
cd django-createsuperuserwithpassword
docker-compose up --build
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
File details
Details for the file django-createsuperuserwithpassword-2.0.0.tar.gz
.
File metadata
- Download URL: django-createsuperuserwithpassword-2.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 337482e587b87967817f087f922d567cee6d59bd961328b2d8749960a4dcf1d9 |
|
MD5 | a19be16f51eb25357ac5b865e2933eb8 |
|
BLAKE2b-256 | 9aa3a40cf9cb1384497c28dcaf20b473436981a3622cff9287b3de7cb8c449a3 |