Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 year ago
123456789101112131415161718192021222324252627
  1. from django.apps import AppConfig
  2. from django.contrib.admin.checks import check_admin_app, check_dependencies
  3. from django.core import checks
  4. from django.utils.translation import gettext_lazy as _
  5. class SimpleAdminConfig(AppConfig):
  6. """Simple AppConfig which does not do automatic discovery."""
  7. default_auto_field = "django.db.models.AutoField"
  8. default_site = "django.contrib.admin.sites.AdminSite"
  9. name = "django.contrib.admin"
  10. verbose_name = _("Administration")
  11. def ready(self):
  12. checks.register(check_dependencies, checks.Tags.admin)
  13. checks.register(check_admin_app, checks.Tags.admin)
  14. class AdminConfig(SimpleAdminConfig):
  15. """The default AppConfig for admin which does autodiscovery."""
  16. default = True
  17. def ready(self):
  18. super().ready()
  19. self.module.autodiscover()