3👍
for all those who are still wondering what that “/” means than simply update the url
from
url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps': {'cmspages': CMSSitemap}}),
to
url(r'^sitemap\.xml/$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps': {'cmspages': CMSSitemap}}),
1👍
I can’t believe I spent so much time not noticing that the final /
was the cause of the problem.
I’ll leave this post here just in case it saves someone else some time …
- [Django]-Changing field in Django Form, overriding clean()
- [Django]-AWS Elastic Beanstalk Django – What happens first when deploying to EB, pip install -r requirements.txt or commands in configuration file
Source:stackexchange.com