From 1e8cc6f2904783bba3f2b4467269b4356459bd52 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 11 Feb 2016 09:51:39 +0530 Subject: [PATCH] Cleanup final use of urls.patterns() method - As deprecated in Django 1.9. --- plinth/urls.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plinth/urls.py b/plinth/urls.py index 5ab1c866e..44be0a509 100644 --- a/plinth/urls.py +++ b/plinth/urls.py @@ -19,10 +19,9 @@ Django URLconf file containing all urls """ -from django.conf.urls import patterns, url +from django.conf.urls import url +from . import views - -urlpatterns = patterns( # pylint: disable-msg=C0103 - 'plinth.views', - url(r'^$', 'index', name='index') -) +urlpatterns = [ + url(r'^$', views.index, name='index') +]