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.8 or later
- Django 4.2 or later
Installation
- Install
django-case-insensitive-userusing pip.
pip install requirements.txt
- Add
case_insensitive_usertoINSTALLED_APPSlist in settings.
INSTALLED_APPS = [
...
"case_insensitive_user",
]
- Set
AUTH_USER_MODELtocase_insensitive_user.Userin settings.
AUTH_USER_MODEL = "case_insensitive_user.User"
Overriding default user model
If you want to add additional fields to the user model, you can do so by creating a new model that inherits from case_insensitive_user.User and adding additional fields to it. Then, set AUTH_USER_MODEL to the new model in settings.
from django.db import models
from case_insensitive_user.models import User
class CustomUser(User):
custom_field = models.CharField(max_length=100)
Make sure to set AUTH_USER_MODEL to the new model in settings.
AUTH_USER_MODEL = "your_app.CustomUser"
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_case_insensitive_user-0.2.2.tar.gz.
File metadata
- Download URL: django_case_insensitive_user-0.2.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
312740c1980c774f8ce2f29bfac1d7106020c38981c024ab83f7bc82c13f7c51
|
|
| MD5 |
701e2a07d3530a80043ae50a85554201
|
|
| BLAKE2b-256 |
e9d9358b38852ca9e99e705fd2624458a6c555f2eb9420f2737e551be29b00bc
|
Provenance
The following attestation bundles were made for django_case_insensitive_user-0.2.2.tar.gz:
Publisher:
publish_package.yml on alenzeinolov/django-case-insensitive-user
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_case_insensitive_user-0.2.2.tar.gz -
Subject digest:
312740c1980c774f8ce2f29bfac1d7106020c38981c024ab83f7bc82c13f7c51 - Sigstore transparency entry: 159886834
- Sigstore integration time:
-
Permalink:
alenzeinolov/django-case-insensitive-user@9ef89dc9a415db13bb9e9a8042a6dff6d0318dd3 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/alenzeinolov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_package.yml@9ef89dc9a415db13bb9e9a8042a6dff6d0318dd3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_case_insensitive_user-0.2.2-py3-none-any.whl.
File metadata
- Download URL: django_case_insensitive_user-0.2.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
363a13b60913456e91bbfebe326c97f18508f0f472bcff37e2014a025de2a835
|
|
| MD5 |
2714bdb83720d2a80f15427d1e6c5256
|
|
| BLAKE2b-256 |
0373fdb299107c34186bc4d93754b29d2f3422476b56de369d610c4146852658
|
Provenance
The following attestation bundles were made for django_case_insensitive_user-0.2.2-py3-none-any.whl:
Publisher:
publish_package.yml on alenzeinolov/django-case-insensitive-user
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_case_insensitive_user-0.2.2-py3-none-any.whl -
Subject digest:
363a13b60913456e91bbfebe326c97f18508f0f472bcff37e2014a025de2a835 - Sigstore transparency entry: 159886838
- Sigstore integration time:
-
Permalink:
alenzeinolov/django-case-insensitive-user@9ef89dc9a415db13bb9e9a8042a6dff6d0318dd3 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/alenzeinolov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_package.yml@9ef89dc9a415db13bb9e9a8042a6dff6d0318dd3 -
Trigger Event:
push
-
Statement type: