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
| Attribute | Type | Description |
|---|---|---|
| default_auto_field | string = django.db.models.AutoField | The implicit primary key type to use for models in this app that do not define a primary key field. |
| name | string = django.contrib.auth | Full Python path to the application used by Django to uniquely identify the app and find its resources. |
| verbose_name | string = Authentication and Authorization | Human-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
| Type | Description |
|---|---|
null | Nothing is returned; the method performs side effects to configure the application state. |