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,12 +19,13 @@
|
||||
URLs for the Diagnostics module
|
||||
"""
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import diagnostics as views
|
||||
|
||||
|
||||
urlpatterns = patterns( # pylint: disable-msg=C0103
|
||||
'plinth.modules.diagnostics.diagnostics',
|
||||
url(r'^sys/diagnostics/$', 'index', name='index'),
|
||||
url(r'^sys/diagnostics/(?P<module_name>[a-z\-]+)/$', 'module',
|
||||
urlpatterns = [
|
||||
url(r'^sys/diagnostics/$', views.index, name='index'),
|
||||
url(r'^sys/diagnostics/(?P<module_name>[a-z\-]+)/$', views.module,
|
||||
name='module'),
|
||||
)
|
||||
]
|
||||
Reference in new issue
Block a user