title: Reverse for 'api' not found. 'api' is not a valid view function or pattern name with rest-framework
body: <p>I have a few api with django-rest-framework, my routing is like this below.</p>
  
  <p>set <code>/api/genres</code> under <code>/api</code></p>
  
  <pre><code>from rest_framework import routers
  from django.conf.urls import url
  from django.conf.urls import include
  
  router = routers.DefaultRouter()
  router.register(r'genres', GenreViewSet)
  
  urlpatterns = [
      url(r'^api/',include(router.urls), name='api'),
      path('', views.index, name='index'),
  </code></pre>
  
  <p>Now I want to use this url in template, so I tried two patterns, but both shows error.</p>
  
  <p>How should I make the link for api??</p>
  
  <pre><code>&lt;a href="{% url 'api' %}"&gt;api&lt;/a&gt;
  Reverse for 'api' not found. 'api' is not a valid view function or pattern name.
  
  &lt;a href="{% url 'genres' %}"&gt;genre&lt;/a&gt;
  Reverse for 'genres' not found. 'genres' is not a valid view function or pattern name.
  </code></pre>