mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/urls: Use new urlpatterns list syntax
The patterns() function is deprecated in Django 1.8 and gone in 1.10, so we should switch over to the new list format. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
7606664eeb
commit
71e3aac59d
|
@ -1,11 +1,11 @@
|
|||
from django.conf.urls import patterns, include, url
|
||||
from django.conf.urls import include, url
|
||||
|
||||
from rrs.models import Release, Milestone
|
||||
from rrs.views import RecipeListView, recipes_report, RecipeDetailView, \
|
||||
MaintainerListView, FrontPageRedirect, MaintenancePlanRedirect, \
|
||||
MaintenanceStatsView
|
||||
|
||||
urlpatterns = patterns('',
|
||||
urlpatterns = [
|
||||
url(r'^$', FrontPageRedirect.as_view(),
|
||||
name='rrs_frontpage'),
|
||||
url(r'^maintplan/(?P<maintplan_name>.*)/$',
|
||||
|
@ -30,4 +30,4 @@ urlpatterns = patterns('',
|
|||
MaintenanceStatsView.as_view(
|
||||
template_name='rrs/rrs_stats.html'),
|
||||
name="rrs_stats"),
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user