When you change data on your database ALWAYS use the http POST method.
So your view should check if request.method == 'POST' and then proceed
to change the rating. It should also check if the user is
authenticated and if she already voted.
As for the ajax part have a look at the jQuery javascript
So what do these filters (humanise, typogrify) do?
I would suggest a truncatesentences, to go along with truncatewords
Daniele Procida wrote:
> I'm doing a demo of some of our Django work soon. Partly, it'll be a
> showcase for Django. One thing I'd like to do is demonstrate Django's
> template
2 matches
Mail list logo