  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  
  from rest_framework import exceptions
  from rest_framework.compat import URLPattern, URLResolver, get_original_route
  from rest_framework.request import clone_request
  from rest_framework.settings import api_settings
  from rest_framework.utils.model_meta import _get_pk
  
  
 
</s> remove from django.urls import path, register_converter
 </s> add from django.urls import URLResolver, path, register_converter
from django.urls.resolvers import RoutePattern </s> remove from rest_framework.compat import (
    URLResolver, get_regex_pattern, is_route_pattern
)
 </s> add  </s> remove from rest_framework.compat import coreapi, coreschema, get_regex_pattern
 </s> add from rest_framework.compat import coreapi, coreschema </s> remove from rest_framework.compat import get_regex_pattern
 </s> add 
  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  
  from rest_framework import exceptions

  from rest_framework.request import clone_request
  from rest_framework.settings import api_settings
  from rest_framework.utils.model_meta import _get_pk
  
  
keep keep keep keep replace keep keep keep keep keep
 Drop all compat support to Django < 2 urls (#7337) 
rest_framework/schemas/generators.py