Address RemovedInDjango40Warning

In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I90d44f7e8b3b0067c67dcdf9fbaf57b94e627d3c
This commit is contained in:
manchandavishal 2022-04-29 21:57:21 +05:30
parent 1f6691e05c
commit 96c18c8cf5
2 changed files with 4 additions and 4 deletions

View File

@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from django.conf.urls import url
from django.urls import re_path
from octavia_dashboard.dashboards.project.load_balancer import views
urlpatterns = [
url('', views.IndexView.as_view(), name='index'),
re_path('', views.IndexView.as_view(), name='index'),
]

View File

@ -13,9 +13,9 @@
# under the License.
from django.conf.urls import include
from django.conf.urls import url
from django.urls import re_path
import openstack_dashboard.urls
urlpatterns = [
url(r'', include(openstack_dashboard.urls))
re_path(r'', include(openstack_dashboard.urls))
]