title: Django: Get the git revision number of the current project
body: <p>For my django project, I need to read the current git revision number of my project that powers the site, assuming the project is the root dir of the git repository.</p>
  
  <p>This way I will be keeping my css and js pages always up to date as such:</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="/media/css/app.css?v46"&gt; 
  </code></pre>
  
  <p>Where 46 is the revision number.</p>