title: Registered URLs in a router not working
body: <p>I am attempting to have several views in a router that is used in a url, and the urls don't seem to work at all. I followed the instructions on <a href="http://www.django-rest-framework.org/api-guide/routers/" rel="nofollow noreferrer">http://www.django-rest-framework.org/api-guide/routers/</a>, but my code doesn't appear to work.</p>
  
  <p>My intention is to be able to access the views through these urls:</p>
  
  <pre><code>/rest-api/clubs/  
  /rest-api/users/  
  /rest-api/token/  
  /rest-api/docs/
  </code></pre>
  
  <h3>urls.py</h3>
  
  <pre><code>from django.conf.urls import url
  from django.contrib import admin
  from . import views
  from rest_framework.documentation import include_docs_urls
  from django.conf.urls import include
  from rest_framework.authtoken import views as rest_views
  from rest_framework import routers
  
  # These urls don't work at all. But if I put them directly in urlpatterns,
  # instead of a router, they work.
  router = routers.DefaultRouter()
  router.register(r'clubs', views.ClubViewSet)
  router.register(r'users', views.UserViewSet)
  router.register(r'token', rest_views.obtain_auth_token, base_name="User Token (login)")
  router.register(r'docs', include_docs_urls(), base_name="API Documentation")
  
  urlpatterns = [    
      url(r'^$', views.index, name="Homepage"),
      url(r'^admin/', admin.site.urls),
      url(r'^rest-api/', include(router.urls)),
  ]
  </code></pre>
  
  <h3>views.py</h3>
  
  <pre><code>from .models import Club, Token, Calendar
  from django.contrib.auth.models import User
  from rest_framework import viewsets
  class ClubViewSet(viewsets.views.APIView):
      """
      API endpoint that allows users to be viewed or edited.
      """
      queryset = Club.objects.all()
      serializer_class = ClubSerializer
  
  class UserViewSet(viewsets.views.APIView):
      """
      API endpoint that allows users to be viewed or edited.
      """
      queryset = User.objects.all()
      serializer_class = UserSerializer
  </code></pre>