apps.py 383 B

12345678910111213
  1. from django.apps import AppConfig
  2. from django.core import checks
  3. from django.contrib.auth.checks import check_user_model
  4. from django.utils.translation import ugettext_lazy as _
  5. class AuthConfig(AppConfig):
  6. name = 'django.contrib.auth'
  7. verbose_name = _("Authentication and Authorization")
  8. def ready(self):
  9. checks.register(checks.Tags.models)(check_user_model)