Replace url() with re_path()
authorMagnus Hagander <[email protected]>
Tue, 16 Apr 2024 14:37:44 +0000 (16:37 +0200)
committerMagnus Hagander <[email protected]>
Tue, 16 Apr 2024 14:37:44 +0000 (16:37 +0200)
re_path() is an alias for url() but it has been deprecated and will be
removed.

code/skin_urls.py

index 8cd51c73075672206c8d53f40ff9f5eb44899830..056f7a7b6d2358f0c23edfcf36052402f9a700d1 100644 (file)
@@ -1,9 +1,9 @@
-from django.conf.urls import url
+from django.urls import re_path
 
 import postgresqleu.static.views
 import postgresqleu.membership.views
 
 PRELOAD_URLS = [
-    url(r'^(events/services)/$', postgresqleu.static.views.static_fallback),
-    url(r'^community/members/$', postgresqleu.membership.views.userlist),
+    re_path(r'^(events/services)/$', postgresqleu.static.views.static_fallback),
+    re_path(r'^community/members/$', postgresqleu.membership.views.userlist),
 ]