From: Dave Page Date: Tue, 16 Apr 2024 14:55:01 +0000 (+0100) Subject: Replace url() with re_path() X-Git-Url: http://git.postgresql.org/gitweb/edit?a=commitdiff_plain;h=3a0e39215bdb26cc26671a152955f42f7e3f9799;p=pguk-website.git Replace url() with re_path() re_path() is an alias for url() but it has been deprecated and will be removed. Patch by Magnus. --- diff --git a/code/skin_urls.py b/code/skin_urls.py index 8cd51c7..056f7a7 100644 --- a/code/skin_urls.py +++ b/code/skin_urls.py @@ -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), ]