From 7e3459060be7974db32bc2bdbfe8b5869d3c635f Mon Sep 17 00:00:00 2001 From: Versun Date: Sat, 23 Mar 2024 15:26:29 +0800 Subject: [PATCH] fix slash issue --- core/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/urls.py b/core/urls.py index 3d87ec3..7576391 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,8 +1,10 @@ from django.urls import path from . import views +from django.urls import re_path app_name = "core" urlpatterns = [ - path("/", views.rss, name="rss"), + #path("/", views.rss, name="rss"), + re_path(r'(?P[^/]+)/?$', views.rss, name='rss'), ]