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.

checks.py 340B

1 year ago
123456789101112
  1. from django.conf import settings
  2. from django.core.checks import Error
  3. def check_site_id(app_configs, **kwargs):
  4. if hasattr(settings, "SITE_ID") and not isinstance(
  5. settings.SITE_ID, (type(None), int)
  6. ):
  7. return [
  8. Error("The SITE_ID setting must be an integer", id="sites.E101"),
  9. ]
  10. return []