mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 05:04:46 +02:00

django.conf.urls.url() was removed in Django 4.0: https://docs.djangoproject.com/en/4.2/releases/4.0/#features-removed-in-4-0 Replace all usage with django.urls.re_path() Replace all django.conf.urls imports with equivalent django.urls modules Signed-off-by: Tim Orling <tim.orling@konsulko.com>
42 lines
1.6 KiB
Python
42 lines
1.6 KiB
Python
# rrs-web - URLS
|
|
#
|
|
# Copyright (C) 2014 Intel Corporation
|
|
#
|
|
# Licensed under the MIT license, see COPYING.MIT for details
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from django.urls import include, re_path
|
|
|
|
from rrs.models import Release, Milestone
|
|
from rrs.views import RecipeListView, recipes_report, RecipeDetailView, \
|
|
MaintainerListView, FrontPageRedirect, MaintenancePlanRedirect, \
|
|
MaintenanceStatsView
|
|
|
|
urlpatterns = [
|
|
re_path(r'^$', FrontPageRedirect.as_view(),
|
|
name='rrs_frontpage'),
|
|
re_path(r'^maintplan/(?P<maintplan_name>.*)/$',
|
|
MaintenancePlanRedirect.as_view(),
|
|
name='rrs_maintplan'),
|
|
re_path(r'^recipes/(?P<maintplan_name>.*)/(?P<release_name>.*)/(?P<milestone_name>.*)/$',
|
|
RecipeListView.as_view(
|
|
template_name='rrs/recipes.html'),
|
|
name='rrs_recipes'),
|
|
re_path(r'^recipesreport/(?P<maintplan_name>.*)/(?P<release_name>.*)/(?P<milestone_name>.*)/$',
|
|
recipes_report,
|
|
name="rrs_recipesreport"),
|
|
re_path(r'^recipedetail/(?P<maintplan_name>.*)/(?P<pk>\d+)/$',
|
|
RecipeDetailView.as_view(
|
|
template_name='rrs/recipedetail.html'),
|
|
name='rrs_recipedetail'),
|
|
re_path(r'^maintainers/(?P<maintplan_name>.*)/(?P<release_name>.*)/(?P<milestone_name>.*)/$',
|
|
MaintainerListView.as_view(
|
|
template_name='rrs/maintainers.html'),
|
|
name="rrs_maintainers"),
|
|
re_path(r'^stats/(?P<maintplan_name>.*)/(?P<release_name>.*)/(?P<milestone_name>.*)/$',
|
|
MaintenanceStatsView.as_view(
|
|
template_name='rrs/rrs_stats.html'),
|
|
name="rrs_stats"),
|
|
]
|