From 7f9673451a848804e3d1c5fbe2a92335b1a53192 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Tue, 1 Jul 2025 00:20:19 +0300 Subject: [PATCH] Fixes: 1) Corrected `sitemap_url_name` to include "core:" prefix in `sitemap.xml` path definition; Extra: 1) Improved readability by reformatting dictionary syntax. --- core/api_urls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/api_urls.py b/core/api_urls.py index cb323dd8..da873ef7 100644 --- a/core/api_urls.py +++ b/core/api_urls.py @@ -59,7 +59,10 @@ urlpatterns = [ path( "sitemap.xml", sitemap_index, - {"sitemaps": sitemaps, "sitemap_url_name": "sitemap-detail"}, + { + "sitemaps": sitemaps, + "sitemap_url_name": "core:sitemap-detail", + }, name="sitemap-index", ), path(