Skip to main content

Django commands used to promote or demote users

Project description

License: MIT PyPI version

Give me the damn rights.

Current Features

  • Promote an existing user

  • Demote an existing user

Installation

    1. Install using pip install django-promoter

    1. Add 'django_promoter' to your 'INSTALLED_APPS' settings

    1. You can now access the promote and demote commands from your ./manage.py

Usage

Promote a user

$ ./manage.py promote username

Demote a user

$ ./manage.py demote username

Why would I use this ?

The main purpose of this project is to be able to manage rights when you have to use a read-only backend. The ./manage.py createsuperuser isn’t available because you can’t create new users. Using Django Promoter, once the user is inserted in the Django database, you can promote him to a superuser without having to modify the auth database.

License

The MIT License (MIT)

Copyright © 2017 Numberly

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-promoter-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file django-promoter-1.0.1.tar.gz.

File metadata

File hashes

Hashes for django-promoter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b6de86b36f0728260706c6a126c651d0550e81eff55d9665bcf46ddf6b485076
MD5 7a31b7adbbe5e8e2e5f3ce707e3075e1
BLAKE2b-256 7bc86421390facb2fab019b0d1dfb48f216a9ce058868353e14b32b004d50717

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page