From 5a46ee8c027b92d1b0fc630d87d551cb3cd2c943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Benjam=C3=ADn?= Date: Tue, 23 Jan 2024 20:43:42 -0600 Subject: [PATCH 1/3] Update urls.py the shape of path match with old url shape, but for that must be used re_path instead of path --- pinax/notifications/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinax/notifications/urls.py b/pinax/notifications/urls.py index 6f767390..d04ae9fa 100644 --- a/pinax/notifications/urls.py +++ b/pinax/notifications/urls.py @@ -5,5 +5,5 @@ app_name = "pinax_notifications" urlpatterns = [ - path(r"^settings/$", NoticeSettingsView.as_view(), name="notice_settings"), + re_path(r"^settings/$", NoticeSettingsView.as_view(), name="notice_settings"), ] From 842bfe29ebff5fe4a45024f00adfe99476eb6e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Benjam=C3=ADn?= Date: Tue, 23 Jan 2024 21:49:00 -0600 Subject: [PATCH 2/3] Update urls.py change path to re_path --- pinax/notifications/tests/urls.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pinax/notifications/tests/urls.py b/pinax/notifications/tests/urls.py index a474db38..01e5429c 100644 --- a/pinax/notifications/tests/urls.py +++ b/pinax/notifications/tests/urls.py @@ -1,6 +1,5 @@ -from django.conf.urls import include -from django.urls import path +from django.urls import re_path, include urlpatterns = [ - path(r"^notifications/", include("pinax.notifications.urls", namespace="pinax_notifications")), + re_path(r"^notifications/", include("pinax.notifications.urls", namespace="pinax_notifications")), ] From e40b22ac5e38e7260300542c0046f5dcc7f222ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Benjam=C3=ADn?= Date: Tue, 23 Jan 2024 23:13:42 -0600 Subject: [PATCH 3/3] Update urls.py fix re_path --- pinax/notifications/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinax/notifications/urls.py b/pinax/notifications/urls.py index d04ae9fa..57c3a316 100644 --- a/pinax/notifications/urls.py +++ b/pinax/notifications/urls.py @@ -1,4 +1,4 @@ -from django.urls import path +from django.urls import re_path from .views import NoticeSettingsView