manage.py makesuperuser --username admin --password admin
Project description
Installation
$ [sudo] pip install django-makesuperuser
Commands
command | help |
---|---|
python manage.py makesuperuser |
create/update a superuser with password |
Executable modules
usage | __doc__ |
---|---|
python -m django_makesuperuser username password [email] |
create/update a superuser with password |
Examples
example#1 - management command:
settings.py
INSTALLED_APPS+= ["django_makesuperuser"]
$ python manage.py makesuperuser --username admin --password admin
$ python manage.py makesuperuser --username admin --password admin --email foo@foo.foo
example#2 - python module cli:
$ export DJANGO_SETTINGS_MODULE=settings
$ python -m django_makesuperuser "username" "password"
$ python -m django_makesuperuser "username" "password" foo@foo.foo
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
Close
Hashes for django-makesuperuser-2019.9.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da0d04ef15076786c35a653919a5b30a8b3404f02a049a29b6828cd58c68199d |
|
MD5 | c6bb35ae62a85722b687604f64e3d5ce |
|
BLAKE2b-256 | 162ee6c247edc871f6d6bc921c901808d0654d1c0a245a3a99c8d1d482999dbf |