Take a look at the "{@ with @}" template tag in the documentation. Use {@
with myVariable=someValue @} ... {@ endwith @}.NicoP Le 23 oct. 2013 07:01, "Harjot Mann" <[email protected]> a écrit : > > I want to initialize a varibale in django template from zero, which I > want to comapre with the some job_no whihc is coming from database. I > am not getting hoe to decalre a variable. Please help me . > -- > Harjot Kaur Mann > Blog: http://harjotmann.wordpress.com/ > Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ > > -- > You received this message because you are subscribed to the Google Groups "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB0GQhBfRf3cK-YZ1R90rNaKWgUunVZ_R_nxynSD8LuXQOGoWQ%40mail.gmail.com . > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE9byzDNxxzrvCtF16OE%2B1GOOdHw7WQUjmdFEuEinp_Qonj%3DQw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

