I have a table with an IntegerField (hit_count), and when a page is visited (ie. http://site/page/3) I want record id 3 'hit_count' column in the database to increment by 1.
The query should be like: update table set hit_count = hit_count + 1 where id=3
Can I do this with the standard Django Model conventions? Or should I just write the query by hand?
I'm starting a new project, so I am trying to avoid hacks. We'll see how long this lasts!
Thanks!