Hello people.

This may seem like a very simple question, and for that I apologize.

I am trying to output a variable page_no to a template, but I want to output
page_no + 1 and page_no - 1. How do I do that? I tried to do something like
{{ page_no + 1 }} and that failed. Tried {% and %} as well, but no success.

Surely there is a way to do this other than having to calculate these values
in the view ahead of time?

Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to