Cleanup final use of urls.patterns() method

- As deprecated in Django 1.9.
This commit is contained in:
Sunil Mohan Adapa 2016-02-11 09:51:39 +05:30
parent 7f4c5f7410
commit 1e8cc6f290
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

View File

@ -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')
]