Skip to main content

AuthConfig

This class configures the authentication and authorization application, handling essential setup tasks during the framework's startup. It connects signals for managing model permissions after migrations and registers a handler to update user login timestamps. Additionally, it registers system checks to ensure the integrity of the user model, permissions, and middleware configuration.

Attributes

AttributeTypeDescription
default_auto_fieldstring = django.db.models.AutoFieldThe implicit primary key type to use for models in this app that do not define a primary key field.
namestring = django.contrib.authFull Python path to the application used by Django to uniquely identify the app and find its resources.
verbose_namestring = Authentication and AuthorizationHuman-readable name for the application used in the admin interface and other display contexts.

Methods


ready()

@classmethod
def ready() - > null

Initializes the authentication application by connecting signal handlers for permission management and login tracking, and registering system checks.

Returns

TypeDescription
nullNothing is returned; the method performs side effects to configure the application state.