title: Combine DRF router with django urlpattern
body: <p>How can I combine together django urlpatterns with DRF router using <code>app_name = 'scrumboard'</code>? I tried all ways that are in <a href="http://www.django-rest-framework.org/api-guide/routers/" rel="nofollow noreferrer">DRF documentation</a> explaned but still can't resolve this problem. So far I have following urls.py file:</p>
  <pre><code>#scrumboard/urls.py
  
  from rest_framework.routers import DefaultRouter
  from .api import ListViewSet, CardViewSet
  from django.urls import re_path, path, include
  from . import views
  
  router = DefaultRouter()
  router.register(r'lists', ListViewSet)
  router.register(r'cards', CardViewSet)
  
  app_name = 'scrumboard'
  urlpatterns = [
      path('', views.index, name=&quot;index&quot;),
      re_path(r'^api/', include((router.urls))),
  ]
  </code></pre>
  <p>This is my project urls.py:</p>
  <pre><code>#project/urls.py
  
  from django.contrib import admin
  from django.urls import include, path, re_path
  #Add URL maps to redirect the test URL to our application
  from django.views.generic import RedirectView
  # Use static() to add url mapping to serve static files during development (only)
  from django.conf import settings
  from django.conf.urls.static import static
  
  urlpatterns = [
      path('', include('home.urls')),
      path('admin/', admin.site.urls),
      path('accounts/', include('django.contrib.auth.urls')),
      path('test/', RedirectView.as_view(url='/catalog/', permanent=True)),
      path('polls/', include('polls.urls')),
      path('blog/', include('blog.urls')),
      path('catalog/', include('catalog.urls')),
      path('scrumboard/', include('scrumboard.urls'))
  ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  </code></pre>
  <p>In my template I will have an opportunity to define dynamic url like so:</p>
  <pre><code>&lt;li&gt;&lt;a href=&quot;{% url 'scrumboard:index' %}&quot;&gt;Scrumboard&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  <p>which will take me to my Scrumboard app.</p>
  <p>With this code above when I go to this url localhost:8000/scrumboard/ I get an Error</p>
  <p><a href="https://i.stack.imgur.com/mNzZZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mNzZZ.png" alt="enter image description here" /></a></p>
  <p><strong>UPDATE</strong></p>
  <p>When I go to localhost:8000/scrumboard/api it works well</p>
  <p><a href="https://i.stack.imgur.com/Xk0fA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xk0fA.png" alt="enter image description here" /></a></p>
  <p><strong>UPDATE</strong></p>
  <p>Full Traceback <a href="http://dpaste.com/07QR05W" rel="nofollow noreferrer">http://dpaste.com/07QR05W</a></p>
  <p><strong>UPDATE</strong></p>
  <p>Added project urls.py code</p>