mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Cleanup final use of urls.patterns() method
- As deprecated in Django 1.9.
This commit is contained in:
parent
7f4c5f7410
commit
1e8cc6f290
@ -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')
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user