old_contents: from django.conf.urls import patterns, include, url
  
  from django.contrib import admin
  admin.autodiscover()
  
  import authentication_app.views
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'gettingstarted.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^$', authentication_app.views.index, name='index'),
      url(r'^db', authentication_app.views.db, name='db'),
      url(r'^admin/', include(admin.site.urls)),
  
  )
  
new_contents: from rest_frmaework_nested import routers
  from authentication_app.views import AccountViewSet
  
  router = routers.SimpleRouter()
  router.register(r'accounts', AccountViewSet)
  
  urlpatterns = patterns('',
      # APIendpoints
      url(r'^api/v1/', include(router.urls)),
      url('^.*$', IndexView.as_view(), name='index'),
  )
  
subject: Add the API endpoint url for the account view set.