Re: Performance of include tag

2009-01-06 Thread Michał Moroz
On 2 Sty, 16:12, Rajesh Dhawan wrote: > Here's another way to solve this: Add a rendered_version field to your > Message model and populate it at the time that the message is saved > (perhaps by overriding the Message.save method). This way, you would > just need to write {{ message.rendered_ve

Re: Performance of include tag

2009-01-02 Thread Rajesh Dhawan
> I'm wondering how fast is the include tag. Currently I have a Message > model, which takes role of site messaging system with two ways of > delivering - through a dashboard page and through Jabber. Via Jabber, > each type of message has dedicated template and that template is then > parsed by re

Re: Performance of include tag

2009-01-01 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-01-01, o godz. 19:07, przez Michał Moroz: > I don't think this is optimal - after some looking at code there would > be a get_template() called 30 times. On the other hand, writing > ifequal tags for each type of message in main template should be > faster, but the

Performance of include tag

2009-01-01 Thread Michał Moroz
Hello, Djangoists! I'm wondering how fast is the include tag. Currently I have a Message model, which takes role of site messaging system with two ways of delivering - through a dashboard page and through Jabber. Via Jabber, each type of message has dedicated template and that template is then pa