djangocaseinsensitiveuser 0.2.0
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
Install django-case-insensitive-user using pip.
pip install requirements.txt
Add case_insensitive_user to INSTALLED_APPS list in settings.
INSTALLED_APPS = [
...
"case_insensitive_user",
]
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
}
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.