Make Django urlpatterns list of url()s

- Support for legacy pattern() mechanism will be removed in Django
  1.10.  Currently we see a warning for each Plinth module.
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2015-12-05 09:33:23 -05:00
1 parent a432e16ed7
commit a69f419c3c
29 files changed
+197 -176

No files matched your search

+6 -5
View File
@@ -19,10 +19,11 @@
URLs for the Apps module
"""
from django.conf.urls import patterns, url
from django.conf.urls import url
from . import apps as views
urlpatterns = patterns( # pylint: disable-msg=C0103
'plinth.modules.apps.apps',
url(r'^apps/$', 'index', name='index')
)
urlpatterns = [
url(r'^apps/$', views.index, name='index'),
]