docs: def _reset_django(settings):
      """
      Hackish way to reset the django instance settings and AppConfig
      :param settings: django settings module
      """
      if settings._wrapped != empty:
          clear_url_caches()
          from django.apps import apps
          apps.clear_cache()
          settings._wrapped = empty
          clear_url_caches()