mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
a432e16ed7
commit
a69f419c3c
29 files changed
+197
-176
No files matched your search
@@ -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'),
|
||||
]
|
||||
Reference in new issue
Block a user