simple appconfig which does not do automatic discovery defaultautofield django db models autofield defaultsite django contrib admin sites adminsite name django contrib admin verbosename administration def readyself checks registercheckdependencies checks tags admin checks registercheckadminapp checks tags admin class adminconfigsimpleadminconfig simple appconfig which does not do automatic discovery the default appconfig for admin which does autodiscovery
from django.apps import AppConfig
from django.contrib.admin.checks import check_admin_app, check_dependencies
from django.core import checks
from django.utils.translation import gettext_lazy as _


class SimpleAdminConfig(AppConfig):
    

    default_auto_field = "django.db.models.AutoField"
    default_site = "django.contrib.admin.sites.AdminSite"
    name = "django.contrib.admin"
    verbose_name = _("Administration")

    def ready(self):
        checks.register(check_dependencies, checks.Tags.admin)
        checks.register(check_admin_app, checks.Tags.admin)


class AdminConfig(SimpleAdminConfig):
    

    default = True

    def ready(self):
        super().ready()
        self.module.autodiscover()