diff --git a/octavia_dashboard/dashboards/project/load_balancer/urls.py b/octavia_dashboard/dashboards/project/load_balancer/urls.py index bbae102b..33904fa5 100644 --- a/octavia_dashboard/dashboards/project/load_balancer/urls.py +++ b/octavia_dashboard/dashboards/project/load_balancer/urls.py @@ -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'), ] diff --git a/octavia_dashboard/tests/urls.py b/octavia_dashboard/tests/urls.py index 4924dbad..71c62370 100644 --- a/octavia_dashboard/tests/urls.py +++ b/octavia_dashboard/tests/urls.py @@ -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)) ]