hi, I trying to increase a number by hitting a submit button. So each time you hit the button the site shows an increasing number. How can I show each time the next number?
my "count.html" ----------------------------------------------------------------- <form action="/mysite/count" method="post"> <h1> {{ number }} </h1> <input type="submit" value="Next" /> </form> my "view.py" ----------------------------------------------------------------- def count(request, number=0): new_number = number + 1 return render_to_response('count.html', {'new_number' : number} ) thanks in advance, Tom --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---