diff --git a/ironic_ui/content/ironic/urls.py b/ironic_ui/content/ironic/urls.py index a0143273..4ff85a3a 100644 --- a/ironic_ui/content/ironic/urls.py +++ b/ironic_ui/content/ironic/urls.py @@ -14,12 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -from django.conf.urls import url +from django.urls import re_path import ironic_ui.api.ironic_rest_api # noqa from ironic_ui.content.ironic import views urlpatterns = [ - url(r'^$', views.IndexView.as_view(), name='index'), - url(r'^([^/]+)/$', views.DetailView.as_view(), name='detail'), + re_path(r'^$', views.IndexView.as_view(), name='index'), + re_path(r'^([^/]+)/$', views.DetailView.as_view(), name='detail'), ] diff --git a/ironic_ui/test/urls.py b/ironic_ui/test/urls.py index 3c2ffc23..20342d96 100644 --- a/ironic_ui/test/urls.py +++ b/ironic_ui/test/urls.py @@ -12,9 +12,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)) ]