Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hartwork/django-createsuperuserwithpassword
Django management command to create usable super users, programmatically
https://github.com/hartwork/django-createsuperuserwithpassword
django django-application django-management-command python
Last synced: about 1 month ago
JSON representation
Django management command to create usable super users, programmatically
- Host: GitHub
- URL: https://github.com/hartwork/django-createsuperuserwithpassword
- Owner: hartwork
- Created: 2019-06-09T22:28:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-09T16:40:10.000Z (over 2 years ago)
- Last Synced: 2024-10-01T18:08:10.867Z (about 1 month ago)
- Topics: django, django-application, django-management-command, python
- Language: Python
- Homepage: https://pypi.org/project/django-createsuperuserwithpassword/
- Size: 16.6 KB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
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:
.. code:: shell
pip install [--user] django-createsuperuserwithpassword
2. Activate
-----------Enable the Django management command by extending your Django project
settings:.. code:: python
INSTALLED_APPS += ("django_createsuperuserwithpassword", )
3. 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 [email protected] \
--preserveDevelopment
===========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 --buildAuthors
=======**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