from django.conf.urls import include, url
from django.contrib import admin
from rest_framework.authtoken.views import obtain_auth_token
from rest_framework.routers import DefaultRouter
from . import views

api_router = DefaultRouter()
api_router.register(r'jobs', views.JobViewSet)
api_router.register(r'metrics', views.MetricViewSet)

urlpatterns = [
    url(r'^dashboard/admin', include(admin.site.urls)),
    url(r'^dashboard/api/', include(api_router.urls)),
    url(r'^dashboard/api/token/', obtain_auth_token, name='api-token'),
    url(r'^$', views.HomeView.as_view(), name='home'),
    url(r'^(?P<pk>[a-zA-Z0-9]*$)', views.ListMetricsView.as_view(),
        name='metrics-list'),
]

@@ -197,16 +197,56 @@
 rt views
+%0Aadmin.site.site_header = 'SQUASH Admin'
 %0A%0Aapi_ro

Set title for SQUASH admin interface