🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
DemoInstallSign in
Socket

django-createsuperuserwithpassword

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-createsuperuserwithpassword

Django management command to create usable super users, programmatically

2.0.0
PyPI
Maintainers
1

django-createsuperuserwithpassword

… provides a Django management command to create ready-to-login super users during development.

How to Use

  • Install

Install the pip package locally or globally:

.. code:: shell

pip install [--user] django-createsuperuserwithpassword

  • Activate

Enable the Django management command by extending your Django project settings:

.. code:: python

INSTALLED_APPS += ("django_createsuperuserwithpassword", )

  • Apply

Call the command — e.g. from within a container entrypoint script — like this:

.. code:: shell

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:

.. code:: shell

git clone https://github.com/hartwork/django-createsuperuserwithpassword cd django-createsuperuserwithpassword docker-compose up --build

Authors

django-createsuperuserwithpassword is based on code by Adam Charnock_ licensed under the MIT license_ that started out at adamcharnock/swiftwind-heroku_.

Sebastian Pipping_ added and fixed a few things, on top.

.. _Adam Charnock: https://github.com/adamcharnock .. _the MIT license: https://opensource.org/licenses/MIT .. _adamcharnock/swiftwind-heroku: https://github.com/adamcharnock/swiftwind-heroku/commits/master/swiftwind_heroku/management/commands/create_superuser_with_password.py .. _Sebastian Pipping: https://github.com/hartwork

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts