A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://django-improved-user.readthedocs.io/en/latest/integration.html below:

Website Navigation


Integrate Improved User Directly — Django Improved User 2.1.0 documentation

How To: Integrate Improved User Directly

In a new Django project, perform the following steps in the settings.py file or base settings file.

  1. Add improved_user.apps.ImprovedUserConfig to INSTALLED_APPS

  2. Define or replace AUTH_USER_MODEL with the new model, as below.

    AUTH_USER_MODEL='improved_user.User'
    
  3. 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