Hello Artem, On 03/02/2012 03:04 PM, Артем Рыжов wrote: > I'm working as a web developer for many years. One of the most frequent tasks > is sending email messages. And template system is very usefull for this task > as for web pages. It's strange, but I have not found builtin support for > email > templates on many platforms that I used early. So I have had to write own > tool > for this purpose. This is a simple task, but it's like reinventing the wheel. > Same for Django. It's annoying to use the template class directly, but I have > not found any builtin shortcut function. I've found several third-party > solutions, but I did not like them and created my own (again) :) It is based > on class django.core.mail.Message and provides very similar interface. There > is also templated version of send_mail shortcut (but as I understand it's > going to become a method of Message class soon).
Thanks for your proposal and offered contribution. I think a couple of reasons this is not ready for core are right in your message - it is easy to implement outside of core, and there are a number of different third-party implementations, and no clear community consensus on the Right Way to do it. The place for this evolution to happen is outside of core, in third-party packages that are as easy for developers to use as a "pip install". If your implementation is really the best solution to a very common need, it should become very popular, with many developers asserting that they rely on it in every project. At that point, it becomes possible to open the discussion of whether it belongs in core (and you'll note that even with very popular extensions we tend to be quite conservative about adding things to core if they can be done externally). So I appreciate the offer, but I don't think the time is right to add this to Django core. Carl
signature.asc
Description: OpenPGP digital signature
