docs: def check_debug():
      """Check that Django's template debugging is enabled.
  
      Django's built-in "template debugging" records information the plugin needs
      to do its work.  Check that the setting is correct, and raise an exception
      if it is not.
  
      Returns True if the debug check was performed, False otherwise
      """
      from django.conf import settings
  
      if not settings.configured:
          return False
  
      # I _think_ this check is all that's needed and the 3 "hasattr" checks
      # below can be removed, but it's not clear how to verify that
      from django.apps import apps
      if not apps.ready:
          return False
  
      # django.template.backends.django gets loaded lazily, so return false
      # until they've been loaded
      if not hasattr(django.template, "backends"):
          return False
      if not hasattr(django.template.backends, "django"):
          return False
      if not hasattr(django.template.backends.django, "DjangoTemplates"):
          raise DjangoTemplatePluginException("Can't use non-Django templates.")
  
      for engine in django.template.engines.all():
          if not isinstance(engine, django.template.backends.django.DjangoTemplates):
              raise DjangoTemplatePluginException(
                  "Can't use non-Django templates."
              )
          if not engine.engine.debug:
              raise DjangoTemplatePluginException(
                  "Template debugging must be enabled in settings."
              )
  
      return True