Re: Updating a video rating using AJAX

2010-10-20 Thread Nicolas R
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

Re: Tastiest show-off Django template filters

2009-06-09 Thread Nicolas R
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