diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-28 09:31:07 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-28 10:03:31 -0400 |
| commit | be336c19472135c5e666159acbda12ee09988be0 (patch) | |
| tree | bd46b51a103c4133706143d1298b2388cdb5e34c /dashboard | |
| parent | a638e76264ea42db249e8d7b7dc971b624395893 (diff) | |
Replaced deprecated string function references in urlpatterns.
Diffstat (limited to 'dashboard')
| -rw-r--r-- | dashboard/urls.py | 11 |
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"), ] |
