Re: A question about template fragment caching

2013-02-16 Thread ozgur yilmaz
Thank you for information:) 2013/2/16 Christophe Pettus : > > On Feb 16, 2013, at 9:16 AM, Christophe Pettus wrote: > >> >> On Feb 16, 2013, at 8:50 AM, ozgur yilmaz wrote: >> >>> I'm using template fragment caching in my project. I'm wondering what >>> the view function do when template fragment

Re: A question about template fragment caching

2013-02-16 Thread Christophe Pettus
On Feb 16, 2013, at 9:16 AM, Christophe Pettus wrote: > > On Feb 16, 2013, at 8:50 AM, ozgur yilmaz wrote: > >> I'm using template fragment caching in my project. I'm wondering what >> the view function do when template fragment caching is active? Are >> queries in the view function be executed

Re: A question about template fragment caching

2013-02-16 Thread Christophe Pettus
On Feb 16, 2013, at 8:50 AM, ozgur yilmaz wrote: > I'm using template fragment caching in my project. I'm wondering what > the view function do when template fragment caching is active? Are > queries in the view function be executed? Or bypass the queries and > read the cached fragment? The view

A question about template fragment caching

2013-02-16 Thread ozgur yilmaz
Hi all, I'm using template fragment caching in my project. I'm wondering what the view function do when template fragment caching is active? Are queries in the view function be executed? Or bypass the queries and read the cached fragment? Thanks, -- You received this message because you are sub

Re: Question about Template

2011-10-05 Thread Tom Evans
On Wed, Oct 5, 2011 at 3:09 PM, Tsung-Hsien wrote: > I want to put pictures on website and to let each row shows only four > pictures, but I write the template which shows each pictures in the > same row. > the loop within the , I think it should include and add if > syntax to do that. > How to w

Question about Template

2011-10-05 Thread Tsung-Hsien
I want to put pictures on website and to let each row shows only four pictures, but I write the template which shows each pictures in the same row. the loop within the , I think it should include and add if syntax to do that. How to write the syntax? thanks! {% load static %} {% get_static_prefix

Re: question about template engine jinja

2011-08-14 Thread Phang Mulianto
well this sounds good.. thanks for the information russell . Mulianto On Sun, Aug 14, 2011 at 3:31 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Sunday, August 14, 2011, Phang Mulianto wrote: > > Thanks Reinout for the response, > > > > i read the doc , just in time compilat

Re: question about template engine jinja

2011-08-14 Thread Russell Keith-Magee
On Sunday, August 14, 2011, Phang Mulianto wrote: > Thanks Reinout for the response, > > i read the doc , just in time compilation to Python bytecode is used in jinja.. > > is django default template also do this ? > > which i see the reason why jinja faster. Django's template engine doesn't curr

Re: question about template engine jinja

2011-08-13 Thread Phang Mulianto
Thanks Reinout for the response, i read the doc , just in time compilation to Python bytecode is used in jinja.. is django default template also do this ? which i see the reason why jinja faster. mulianto On Sun, Aug 14, 2011 at 6:19 AM, Reinout van Rees wrote: > On 13-08-11 14:41, Phang Muli

Re: question about template engine jinja

2011-08-13 Thread Reinout van Rees
On 13-08-11 14:41, Phang Mulianto wrote: and i read about jinja template, why it can be faster than django template engine ? Jinja basically uses django's syntax, but (if my memory is correct) it allows you to do more things than django's templates allows you to. Is it faster? I thought ther

question about template engine jinja

2011-08-13 Thread Phang Mulianto
Hi all, i need sugestion about templating. if i use many include in django template, is it a good practice and effect the load performance of the application ? and i read about jinja template, why it can be faster than django template engine ? how many of you prefer jinja, and why ? thanks all

Re: Question about template

2009-10-16 Thread David
Thanks Michael for your reply. What I need is to present money values to end users online. If the values are less than zero, then I need to put "-$" before them. Otherwise I just put "$" there. I will read your link and write a filter to do this. Thanks again. On Oct 16, 4:53 pm, "Michael P.

Re: Question about template

2009-10-16 Thread Michael P. Jung
> I would like to use if clause to check if a number is nagative or not > with template in my html file. I read related part in Django template > online document however I did not find what I need. > > Is it possilbe to do this with built-in Django filter functions? Or do > I have to install a thi

Question about template

2009-10-16 Thread David
Hello, I would like to use if clause to check if a number is nagative or not with template in my html file. I read related part in Django template online document however I did not find what I need. Is it possilbe to do this with built-in Django filter functions? Or do I have to install a third-

Re: question about template system

2009-03-18 Thread Malcolm Tredinnick
On Wed, 2009-03-18 at 17:05 -0400, Alex Gaynor wrote: > > > On Wed, Mar 18, 2009 at 4:49 PM, Jason Wang > wrote: > > Hi all, > > I have a problem where i have a list which stores a bunch of > relevant > key to another dictionary. I want to loop

Re: question about template system

2009-03-18 Thread Alex Gaynor
On Wed, Mar 18, 2009 at 4:49 PM, Jason Wang wrote: > > Hi all, > > I have a problem where i have a list which stores a bunch of relevant > key to another dictionary. I want to loop through the list and print > out the information contained in the keys to output. > > Apparently it doesn't work. >

question about template system

2009-03-18 Thread Jason Wang
Hi all, I have a problem where i have a list which stores a bunch of relevant key to another dictionary. I want to loop through the list and print out the information contained in the keys to output. Apparently it doesn't work. So for example i have the following: lst = ["a", "b"] dic = {"a":1