GithubHelp home page GithubHelp logo

hartwork / django-createsuperuserwithpassword Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 0.0 17 KB

Django management command to create usable super users, programmatically

Home Page: https://pypi.org/project/django-createsuperuserwithpassword/

Dockerfile 15.87% Python 77.45% Shell 6.68%
python django django-application django-management-command

django-createsuperuserwithpassword's Introduction

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:

pip install [--user] django-createsuperuserwithpassword

2. Activate

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

INSTALLED_APPS += ("django_createsuperuserwithpassword", )

3. Apply

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

python manage.py createsuperuserwithpassword \
        --username admin \
        --password admin \
        --email [email protected] \
        --preserve

Development

If you want to help fix a bug, an easy way to spin up a development environment is:

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.

django-createsuperuserwithpassword's People

Contributors

adamcharnock avatar hartwork avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-createsuperuserwithpassword's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.