  from django.conf import settings
  from django.core.exceptions import ImproperlyConfigured
  from django.core.paginator import Page
  from django.http.multipartparser import parse_header
  from django.template import Template, loader
  from django.test.client import encode_multipart
  from django.utils import six
  from django.utils.html import mark_safe
  
  from rest_framework import VERSION, exceptions, serializers, status
 
</s> remove from django.template import Template, TemplateDoesNotExist
 </s> add from django.template import TemplateDoesNotExist, engines </s> remove     pygments_css, template_render
 </s> add     pygments_css </s> remove from django.conf.urls import url
 </s> add from django.conf.urls import include, url </s> remove from rest_framework.compat import is_anonymous
 </s> add  </s> remove from rest_framework.compat import set_many, unicode_repr
 </s> add from rest_framework.compat import unicode_repr
from django.template import engines, loader
  from django.conf import settings
  from django.core.exceptions import ImproperlyConfigured
  from django.core.paginator import Page
  from django.http.multipartparser import parse_header
from django.template import engines, loader
  from django.test.client import encode_multipart
  from django.utils import six
  from django.utils.html import mark_safe
  
  from rest_framework import VERSION, exceptions, serializers, status
keep keep keep keep replace keep keep keep keep keep
 Remove Django 1.8 & 1.9 compatibility code (#5481)

* Identify code that needs to be pulled out of/removed from compat.py

* Extract modern code from get_names_and_managers in compat.py and remove compat code

* Extract modern code from is_authenticated() in compat.py and remove.

* Extract modern code from is_anonymous() in compat.py and remove

* Extract modern code from get_related_model() from compat.py and remove

* Extract modern code from value_from_object() in compat.py and remove

* Update postgres compat

JSONField now always available.

* Remove DecimalValidator compat

* Remove get_remote_field compat

* Remove template_render compat

Plus isort.

* Remove set_many compat

* Remove include compat 
rest_framework/renderers.py