T
def should_redirect_with_slash(self, request):
"""
Return True if settings.APPEND_SLASH is True and appending a slash to
the request path turns an invalid path into a valid one.
"""
https://docs.djangoproject.com/en/2.1/_modules/django/middleware/common/