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: Iaa548fbd1774659217cc75dc90ad008407ed3b7e
This commit is contained in:
manchandavishal 2022-04-29 18:42:20 +05:30
parent 346b843ed8
commit ca1d0f5cb2
2 changed files with 4 additions and 4 deletions

View File

@ -12,12 +12,12 @@
# 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 django.utils.translation import ugettext_lazy as _
from horizon.browsers import views
title = _("Reverse DNS")
urlpatterns = [
url('', views.AngularIndexView.as_view(title=title), name='index'),
re_path('', views.AngularIndexView.as_view(title=title), name='index'),
]

View File

@ -12,12 +12,12 @@
# 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 django.utils.translation import ugettext_lazy as _
from horizon.browsers import views
title = _("Zones")
urlpatterns = [
url('', views.AngularIndexView.as_view(title=title), name='index')
re_path('', views.AngularIndexView.as_view(title=title), name='index')
]