title: django set DateTimeField to database server's current time
body: <p>How do I do the equivalent of this SQL in django?</p>
  
  <pre><code>UPDATE table SET timestamp=NOW() WHERE ...
  </code></pre>
  
  <p>Particularly I want to set the datetime field using server's builtin function to get the system time from the server that the database was running on and not the time on the client machine. </p>
  
  <p>I know you can execute the raw sql directly but I'm looking for a more portable solution since databases have different functions for getting the current datetime. </p>
  
  <p>Edit: few people mentioned auto_now param. This updates the datetime on every modification while I want to update datetime only on certain occasions. </p>