| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from django.apps import AppConfig |
| 4 |
from django.utils.translation import gettext_lazy as _ |
| 5 |
|
| 6 |
from allauth import app_settings |
| 7 |
|
| 8 |
|
| 9 |
class SocialAccountConfig(AppConfig): |
| 10 |
name = "allauth.socialaccount" |
| 11 |
verbose_name = _("Social Accounts") |
| 12 |
default_auto_field = app_settings.DEFAULT_AUTO_FIELD or "django.db.models.AutoField" |
| 13 |
|
| 14 |
def ready(self) -> None: |
| 15 |
from allauth.socialaccount import checks # noqa |
| 16 |
from allauth.socialaccount.providers import registry |
| 17 |
|
| 18 |
registry.load() |