Skip to main content

A custom user model for django authentication

Project description

Django custom user model

A Custom User model for authentication

Requirement

  • Python (3.5, 3.6, 3.7, 3.8)
  • Django (1.11, >2.0, 2.1, 2.2, 3.0, 3.1)

Installation

Install using pip

pip install django-custom-user-models

add to INSTALLED_APPS setting

INSTALLED_APPS = {
    ...
    'CustomAuth',
    ...
}

set AUTH_USER_MODEL setting before first migrate

AUTH_USER_MODEL = 'CustomUser.User'

migrate apps

py manage.py migrate

Status Handler

add handler to yourproject/urls.py

from CustomAuth.urls import handler400, handler401, handler403, handler404, handler500

License

Uses the MIT license.

Project details


Download files

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

Files for django-custom-user-models, version 0.0.40
Filename, size File type Python version Upload date Hashes
Filename, size django_custom_user_models-0.0.40-py3-none-any.whl (20.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-custom-user-models-0.0.40.tar.gz (10.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page