  from django.conf import settings
  from django.db import connection, transaction
  from django.utils.encoding import force_text
  from django.utils.six.moves.urllib.parse import urlparse as _urlparse
  from django.utils import six
  import django
  import inspect
  try:
      import importlib
  except ImportError:
      from django.utils import importlib
  
 
</s> remove from django.core.exceptions import ImproperlyConfigured
 </s> add import inspect

import django
from django.utils import six </s> remove from django.test.signals import setting_changed
from django.conf import settings
 </s> add 
  from django.conf import settings
  from django.db import connection, transaction
  from django.utils.encoding import force_text
  from django.utils.six.moves.urllib.parse import urlparse as _urlparse



  try:
      import importlib
  except ImportError:
      from django.utils import importlib
  
keep keep keep keep replace replace replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/compat.py