Hi,

everything you need in a template can be prepared in a view, so if you need
a specific value just pass a context key with that very value.
Otherwise, if you need a list of integers, just pass a range(N) list.
There is a plenty of builtin filters and tags you can then use to manage it.

If you can better clarify what you want to accomplish, I can perhaps be
more specific.

Regards,
Leo

Leonardo Giordani
Author of The Digital Cat <http://lgiordani.github.com>
My profile on About.me <http://about.me/leonardo.giordani> - My GitHub
page<https://github.com/lgiordani>- My Coderwall
profile <https://coderwall.com/lgiordani>


2013/10/23 Harjot Mann <harjotmann1...@gmail.com>

> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAEhE%2BOkjYLnWrfPG6eyN1OC-iRtRnipsV8XiNyow6jREiy5fPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to