  import itertools
  from collections import namedtuple
  from rest_framework import views
  from rest_framework.compat import patterns, url
  from rest_framework.response import Response
  from rest_framework.reverse import reverse
  from rest_framework.urlpatterns import format_suffix_patterns
  
 
</s>
from django.core.exceptions import ImproperlyConfigured
  import itertools
  from collections import namedtuple
from django.core.exceptions import ImproperlyConfigured
  from rest_framework import views
  from rest_framework.compat import patterns, url
  from rest_framework.response import Response
  from rest_framework.reverse import reverse
  from rest_framework.urlpatterns import format_suffix_patterns
  
keep add keep keep keep keep keep keep
 Raise exception when attempting to dynamically route to a method that is already routed to. Fixes #940
rest_framework/routers.py