Skip to main content

Small app that extends default Django user to have case-insensitive username.

Project description

django-case-insensitive-user

Small app that extends default Django user to have case-insensitive username.

Requirements

  • Python 3.7 or later
  • Django 3.2 or later

Installation

  1. Install django-case-insensitive-user using pip.
pip install requirements.txt
  1. Add case_insensitive_user to INSTALLED_APPS list in settings.
INSTALLED_APPS = [
    ...
    "case_insensitive_user",
]
  1. Set AUTH_USER_MODEL to case_insensitive_user.User in settings.
AUTH_USER_MODEL = "case_insensitive_user.User"

Features

  • Works out of the box in Django admin panel
  • 100% test coverage

Configuration

Configuration is done using CASE_INSENSITIVE_USER optional dictionary in your settings file:

CASE_INSENSITIVE_USER = {
    "VERBOSE_NAME": "Accounts",  # Display name to display in admin page for this app
    "CASE_INSENSITIVE_EMAIL": True,  # Whether to make emails case insensitive too, False by default
}

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-case-insensitive-user-0.2.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

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