summaryrefslogtreecommitdiff
path: root/dashboard
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-09-28 09:31:07 -0400
committerTim Graham <timograham@gmail.com>2015-09-28 10:03:31 -0400
commitbe336c19472135c5e666159acbda12ee09988be0 (patch)
treebd46b51a103c4133706143d1298b2388cdb5e34c /dashboard
parenta638e76264ea42db249e8d7b7dc971b624395893 (diff)
Replaced deprecated string function references in urlpatterns.
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/urls.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/dashboard/urls.py b/dashboard/urls.py
index 6b4a6a7f..ed440f4e 100644
--- a/dashboard/urls.py
+++ b/dashboard/urls.py
@@ -1,9 +1,10 @@
-# -*- coding: utf-8 -*-
from django.conf.urls import url
+from dashboard import views
+
urlpatterns = [
- url(r'^$', 'dashboard.views.index', name="dashboard-index"),
- url(r'^metric/$', 'dashboard.views.index', name="metric-list"),
- url(r'^metric/([\w-]+)/$', 'dashboard.views.metric_detail', name="metric-detail"),
- url(r'^metric/([\w-]+).json$', 'dashboard.views.metric_json', name="metric-json"),
+ url(r'^$', views.index, name="dashboard-index"),
+ url(r'^metric/$', views.index, name="metric-list"),
+ url(r'^metric/([\w-]+)/$', views.metric_detail, name="metric-detail"),
+ url(r'^metric/([\w-]+).json$', views.metric_json, name="metric-json"),
]