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

+9 -8
View File
@@ -19,16 +19,17 @@
URLs for the Help module
"""
from django.conf.urls import patterns, url
from django.conf.urls import url
from . import help as views
urlpatterns = patterns( # pylint: disable-msg=C0103
'plinth.modules.help.help',
urlpatterns = [
# having two urls for one page is a hack to help the current url/menu
# system highlight the correct menu item. Every submenu-item with the same
# url prefix as the main-menu is highlighted automatically.
url(r'^help/$', 'index', name='index'),
url(r'^help/index/$', 'index', name='index_explicit'),
url(r'^help/about/$', 'about', name='about'),
url(r'^help/manual/$', 'manual', name='manual'),
)
url(r'^help/$', views.index, name='index'),
url(r'^help/index/$', views.index, name='index_explicit'),
url(r'^help/about/$', views.about, name='about'),
url(r'^help/manual/$', views.manual, name='manual'),
]