Skip to main content

Create an user for Django

Project description


django-createuser is a package that allows to create users for Django application with ./ command.


Install with pip or pipenv:

pip install django-createuser

Add django_createuser to your installed apps in your file:




Used to create a user.

positional arguments:


Login; required

optional arguments:

-h, --help

show this help message and exit

--email EMAIL

Email; required

--first_name FIRST_NAME

First name; optional

--last_name LAST_NAME

Last name; optional

--password PASSWORD

Password; optional


Staff status; optional, default is False


Superuser status; optional, default is False

-g GROUPS, --groups GROUPS

List of user’s groups; optional, comma is a separator

--database DATABASE

Specifies the database to use; optional, default is "default"


show program’s version number and exit

-v LEVEL, --verbosity LEVEL

Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output

--settings SETTINGS

The Python path to a settings module, e.g. "myproject.settings.main". If this isn’t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.

--pythonpath PYTHONPATH

A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".


Raise on CommandError exceptions


Don’t colorize the command output.


Force colorization of the command output.




Copyright © 2019, Piotr Roszatycki

This software is distributed under the GNU Lesser General Public License (LGPL 3 or greater).

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

Uploaded source

Built Distribution

django_createuser-0.1.0-py2.py3-none-any.whl (7.7 kB view hashes)

Uploaded py2 py3

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