In a new Django project, perform the following steps in the settings.py
file or base settings file.
Add improved_user.apps.ImprovedUserConfig
to INSTALLED_APPS
Define or replace AUTH_USER_MODEL
with the new model, as below.
AUTH_USER_MODEL='improved_user.User'
Change UserAttributeSimilarityValidator
to match correct User
fields, as shown below.
AUTH_PREFIX = 'django.contrib.auth.password_validation.' AUTH_PASSWORD_VALIDATORS = [ { 'NAME': AUTH_PREFIX + 'UserAttributeSimilarityValidator', 'OPTIONS': { 'user_attributes': ('email', 'full_name', 'short_name') }, }, # include other password validators here ]
Note
Improved user also comes with forms, test factories, and an admin panel. Take a look at the Package Reference for more information.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4