From 5db38a82d2589e64c66b5312008b67617b05d981 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:27:52 -0500 Subject: [PATCH] python/django: Use variable name that is unlikely to conflict with module name --- .../{{cookiecutter.project_slug}}/core/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookiecutter-django/{{cookiecutter.project_slug}}/core/urls.py b/cookiecutter-django/{{cookiecutter.project_slug}}/core/urls.py index e7f26c9..142b7e8 100644 --- a/cookiecutter-django/{{cookiecutter.project_slug}}/core/urls.py +++ b/cookiecutter-django/{{cookiecutter.project_slug}}/core/urls.py @@ -2,9 +2,9 @@ from django.contrib.sitemaps.views import sitemap from django.urls import path -sitemaps = {} +maps = {} urlpatterns = [ path("admin/", admin.site.urls), - path("sitemap.xml", sitemap, {"sitemaps": sitemaps}, name="django.contrib.sitemaps.views.sitemap"), + path("sitemap.xml", sitemap, {"sitemaps": maps}, name="django.contrib.sitemaps.views.sitemap"), ]