id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 16175,Use TemplateResponse in django.contrib.sitemaps,Mathieu Pillard,nobody,"Like it was done for the admin in #15008 , it would be useful to convert django.contrib.sitemaps views to TemplateResponse, in order to help apps/projects re-use it while adding some stuff in the context. For instance, the [https://github.com/callowayproject/django-news-sitemaps/ django-news-sitemaps] news_sitemap() view is ''almost'' a straight copy/paste from django.contrib.sitemaps.views.sitemap(), just adding a couple items in the context (and changing a couple other lines but that's a different issue) Attached is a very simple patch that does exactly that, passing all current tests. ",New feature,closed,contrib.sitemaps,dev,Normal,fixed,,,Accepted,1,0,1,0,0,0