Skip to main content

A Django admin command to create an admin user if no user exists

Project description

django_init_admin

Django admin command to create an admin/admin superuser if no user exists

The main purpose is to init an admin user for the applications you deliver. Your end-user will be able to login with admin (pwd: admin) and manage his users.

usage

  • Install the command in your python environment:
    pip install django_init_admin_command
    
  • Include this command in you project settings.py file:
    INSTALLED_APPS = [
     # ...
     'init_admin_command',
     # ...
    
  • Create the admin user in a deploy / install script:
    python manage.py initadmin
    

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_init_admin_command-0.1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

django_init_admin_command-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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