diff --git a/zun_ui/content/container/capsules/urls.py b/zun_ui/content/container/capsules/urls.py index bb215ee..e677f8b 100644 --- a/zun_ui/content/container/capsules/urls.py +++ b/zun_ui/content/container/capsules/urls.py @@ -10,11 +10,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 django.utils.translation import ugettext_lazy as _ from horizon.browsers import views title = _("Capsules") urlpatterns = [ - url('', views.AngularIndexView.as_view(title=title), name='index'), + re_path('', views.AngularIndexView.as_view(title=title), name='index'), ] diff --git a/zun_ui/content/container/containers/admin_urls.py b/zun_ui/content/container/containers/admin_urls.py index ab6179a..78ab84c 100644 --- a/zun_ui/content/container/containers/admin_urls.py +++ b/zun_ui/content/container/containers/admin_urls.py @@ -10,14 +10,14 @@ # 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 from zun_ui.content.container.containers import views as zun_views title = _("Containers") urlpatterns = [ - url(r'^(?P[^/]+)/console', - zun_views.SerialConsoleView.as_view(), name='console'), - url('', views.AngularIndexView.as_view(title=title), name='index'), + re_path(r'^(?P[^/]+)/console', + zun_views.SerialConsoleView.as_view(), name='console'), + re_path('', views.AngularIndexView.as_view(title=title), name='index'), ] diff --git a/zun_ui/content/container/containers/urls.py b/zun_ui/content/container/containers/urls.py index ab6179a..78ab84c 100644 --- a/zun_ui/content/container/containers/urls.py +++ b/zun_ui/content/container/containers/urls.py @@ -10,14 +10,14 @@ # 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 from zun_ui.content.container.containers import views as zun_views title = _("Containers") urlpatterns = [ - url(r'^(?P[^/]+)/console', - zun_views.SerialConsoleView.as_view(), name='console'), - url('', views.AngularIndexView.as_view(title=title), name='index'), + re_path(r'^(?P[^/]+)/console', + zun_views.SerialConsoleView.as_view(), name='console'), + re_path('', views.AngularIndexView.as_view(title=title), name='index'), ] diff --git a/zun_ui/content/container/hosts/urls.py b/zun_ui/content/container/hosts/urls.py index c1e1ef5..d83bd8e 100644 --- a/zun_ui/content/container/hosts/urls.py +++ b/zun_ui/content/container/hosts/urls.py @@ -10,11 +10,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 django.utils.translation import ugettext_lazy as _ from horizon.browsers import views title = _("Hosts") urlpatterns = [ - url('', views.AngularIndexView.as_view(title=title), name='index'), + re_path('', views.AngularIndexView.as_view(title=title), name='index'), ] diff --git a/zun_ui/content/container/images/urls.py b/zun_ui/content/container/images/urls.py index 2620e7f..11b09f9 100644 --- a/zun_ui/content/container/images/urls.py +++ b/zun_ui/content/container/images/urls.py @@ -10,11 +10,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 django.utils.translation import ugettext_lazy as _ from horizon.browsers import views title = _("Images") urlpatterns = [ - url('', views.AngularIndexView.as_view(title=title), name='index'), + re_path('', views.AngularIndexView.as_view(title=title), name='index'), ]