CBV contrib.sitemaps

2015-12-15 Thread Carl Johnson
hatever), would that pull request be something you would have interest in merging? Or do you consider the existing sitemaps are good enough, and you don't want to have support something new (for example, rewriting all the docs)? Thanks, — Carl Johnson -- You received this message because y

Re: CBV contrib.sitemaps

2015-12-21 Thread Carl Johnson
On Tuesday, December 15, 2015 at 6:35:06 PM UTC-5, Shai Berger wrote: > > Hi Carl, > > On Tuesday 15 December 2015 18:17:36 Carl Johnson wrote: > > I was adding a sitemap to a project, and I more or less had to rewrite > the > > views from scratch because s

Re: Add "view_decorators" to django.views.generic.View

2015-12-21 Thread Carl Johnson
I would find that useful. In my experience, I often have a mixture of CBV and non-CBV code, and it's annoying to shoehorn decorators into the as_view method. It would be much more convenient to just add to self.view_decorators. -- You received this message because you are subscribed to the Goo

Re: 1.8 shipping invalid .py files in the startapp template

2015-12-21 Thread Carl Johnson
FWIW, this also bit me. I have a deploy script that runs python -m compileall as part of its build process. It was pretty easy to work around by adding -x app_template, but why make everyone else work around Django? ISTM it would be better to call the files .py_template instead since they aren'

Re: 1.8 shipping invalid .py files in the startapp template

2016-01-11 Thread Carl Johnson
I think the template files should be shipped out as .py-tpl, since that's their type (a Python template), and the resulting final files should just have the extension renamed. Having two extension is just confusing and leads to questions like this one about other kinds of templates. -- You rec