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.8.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d96c7d8edfb28e6a73ec93d25e46cd8df333483a4d04b7ae7c28dbc67b49e319 |
|
MD5 | af799ce4664148d7c5a9dedc00967fc7 |
|
BLAKE2b-256 | a3ba3920f4c8d67353a375cc9df2a99aed473fbc975bd7851ae12e1be1a1993a |