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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 642a620d8191b87b04a7377685b86de31892451001485aa17f72d95991bbcf8d |
|
MD5 | d6ab43e6f1819e73e1a352e9c6c8892c |
|
BLAKE2b-256 | 2bc87c73148391389089455df40d4855593524df929d4feda954a767072cfde5 |