  """
  from __future__ import unicode_literals
  
  from django.conf.urls import url
  from django.contrib.auth import views
  
  if django.VERSION < (1, 11):
      login = views.login
      login_kwargs = {'template_name': 'rest_framework/login.html'}
      logout = views.logout
  else:
      login = views.LoginView.as_view(template_name='rest_framework/login.html')
      login_kwargs = {}
      logout = views.LogoutView.as_view()
  
  
  app_name = 'rest_framework'
  urlpatterns = [
      url(r'^login/$', login, login_kwargs, name='login'),
 
</s>
  """
  from __future__ import unicode_literals
  
  from django.conf.urls import url










  
  
  app_name = 'rest_framework'
  urlpatterns = [
      url(r'^login/$', login, login_kwargs, name='login'),
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Revert "Move django.contrib.auth import out of compat."

This reverts commit d4d9cc1d53fa38fdf6b38e2a64b4aa3a71a9760c.
rest_framework/urls.py