  from django.http import HttpResponse
  
  
  def empty_view(request, *args, **kwargs):
      return HttpResponse()
  
  
 
</s> remove         resolve(path, urlconf)
        return True
 </s> add         return resolve(path, urlconf) </s> remove             return (
                not is_valid_path(request.path_info, urlconf) and
                is_valid_path('%s/' % request.path_info, urlconf)
            )
 </s> add             if not is_valid_path(request.path_info, urlconf):
                match = is_valid_path('%s/' % request.path_info, urlconf)
                if match:
                    view = match.func
                    return getattr(view, 'should_append_slash', True) </s> remove     Return True if the given path resolves against the default URL resolver,
    False otherwise. This is a convenience method to make working with "is
    this a match?" cases easier, avoiding try...except blocks.
 </s> add     Return the ResolverMatch if the given path resolves against the default URL
    resolver, False otherwise. This is a convenience method to make working
    with "is this a match?" cases easier, avoiding try...except blocks.
from django.utils.decorators import method_decorator
from django.views.decorators.common import no_append_slash
from django.views.generic import View
  from django.http import HttpResponse
from django.utils.decorators import method_decorator
from django.views.decorators.common import no_append_slash
from django.views.generic import View
  
  
  def empty_view(request, *args, **kwargs):
      return HttpResponse()
  
  
add keep keep keep keep keep keep
 Fixed #32124 -- Added per-view opt-out for APPEND_SLASH behavior. 
tests/middleware/views.py