summaryrefslogtreecommitdiff
path: root/openstack_auth/tests
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2022-01-27 00:07:02 +0900
committerAkihiro Motoki <amotoki@gmail.com>2022-02-04 16:26:54 +0900
commitd9266fd82c1f0acc6b7236a6dc9b7e510985eb13 (patch)
tree0c9db80e2dbce71dc5c3b81bc50511216d8a75b9 /openstack_auth/tests
parentcd7c1b5110fe1f64cd9dfbeb1072b37912d0efee (diff)
downloadhorizon-d9266fd82c1f0acc6b7236a6dc9b7e510985eb13.tar.gz
Address RemovedInDjango40Warning (3)
In Django 3.1, django.conf.urls.url() is deprecated in favor of django.urls.re_path(). https://docs.djangoproject.com/en/4.0/releases/3.1/#id2 Change-Id: I484694f8718f61c022126a1935cf28fce075894b
Diffstat (limited to 'openstack_auth/tests')
-rw-r--r--openstack_auth/tests/urls.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/openstack_auth/tests/urls.py b/openstack_auth/tests/urls.py
index 0a32b0841..eaafce525 100644
--- a/openstack_auth/tests/urls.py
+++ b/openstack_auth/tests/urls.py
@@ -12,14 +12,15 @@
# limitations under the License.
from django.conf.urls import include
-from django.conf.urls import url
+from django.urls import re_path
from django.views import generic
from openstack_auth import views
urlpatterns = [
- url(r"", include('openstack_auth.urls')),
- url(r"^websso/$", views.websso, name='websso'),
- url(r"^$", generic.TemplateView.as_view(template_name="auth/blank.html"))
+ re_path(r"", include('openstack_auth.urls')),
+ re_path(r"^websso/$", views.websso, name='websso'),
+ re_path(r"^$",
+ generic.TemplateView.as_view(template_name="auth/blank.html"))
]