From 90c20cf615fdd226d0e93574e09fe39469729a92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Tue, 26 Aug 2014 18:32:03 +0200 Subject: [PATCH] [History] pass callables to URL dispatcher using string-based view definitions are deprecated as of Django 1.8 https://docs.djangoproject.com/en/dev/ref/urls/#url --- mygpo/history/urls.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mygpo/history/urls.py b/mygpo/history/urls.py index 9f20ed30..c8907b5e 100644 --- a/mygpo/history/urls.py +++ b/mygpo/history/urls.py @@ -1,15 +1,18 @@ from django.conf.urls import url +from mygpo.history.views import (history, history_podcast_id, + history_podcast_slug, ) + urlpatterns = [ - url(r'^history/$', 'mygpo.history.views.history', name='history'), + url(r'^history/$', history, name='history'), url(r'^podcast/(?P[0-9a-f]{32})/\+history', - 'mygpo.history.views.history_podcast_id', + history_podcast_id, name='podcast-history-id'), url(r'^podcast/(?P[\w-]+)/\+history', - 'mygpo.history.views.history_podcast_slug', + history_podcast_slug, name='podcast-history-slug'), - url(r'^device/(?P[\w.-]+)/history$', 'history', name='device-history'), + url(r'^device/(?P[\w.-]+)/history$', history, name='device-history'), ] -- 2.11.4.GIT