          ...
          url(r'^auth', include('rest_framework.urls', namespace='rest_framework'))
      )
  """
  from django.conf.urls.defaults import patterns, url
  
  
  template_name = {'template_name': 'rest_framework/login.html'}
  
  urlpatterns = patterns('django.contrib.auth.views',
 
</s> remove from django.conf.urls.defaults import patterns, url
 </s> add  </s> remove from django.conf.urls.defaults import patterns
 </s> add  </s> remove from django.conf.urls.defaults import patterns, url
 </s> add 
from rest_framework.compat import patterns, url
          ...
          url(r'^auth', include('rest_framework.urls', namespace='rest_framework'))
      )
  """
from rest_framework.compat import patterns, url
  
  
  template_name = {'template_name': 'rest_framework/login.html'}
  
  urlpatterns = patterns('django.contrib.auth.views',
keep keep keep keep replace keep keep keep keep keep
 urls, patterns, include imports move to compat to support incoming 1.3 thru 1.6 import compatability 
rest_framework/urls.py