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.

apps.py 562B

1234567891011121314151617
  1. from django.apps import AppConfig
  2. from django.contrib.sites.checks import check_site_id
  3. from django.core import checks
  4. from django.db.models.signals import post_migrate
  5. from django.utils.translation import gettext_lazy as _
  6. from .management import create_default_site
  7. class SitesConfig(AppConfig):
  8. default_auto_field = "django.db.models.AutoField"
  9. name = "django.contrib.sites"
  10. verbose_name = _("Sites")
  11. def ready(self):
  12. post_migrate.connect(create_default_site, sender=self)
  13. checks.register(check_site_id, checks.Tags.sites)