Hi, Sparked by a discussion with friends on common failing in web development, one common one is encoding HTML in the code.
There are efforts underway to address this within core Django (related to widgets and forms) but a pattern I've noticed in some of my project is that messages in response to actions have HTML encoded within the Django code. Obviously it isn't hard to modify things so that instead of a fixed message, these projects load a template and then render that to a string -- leaving the HTML to others. My idea is that Django will allow you to shoot yourself but should promote as much best practice (easily) as it can. With that in mind I think a nice extension to the messages framework would be to allow a template to be specified instead of a string. Before I create a patch / ticket to do this, I was wondering if anyone had any thoughts or opinions about it first (since having a discussion on trac can be difficult). Regards, Anand -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
