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.
This way I will be keeping my css and js pages always up to date as such:
<link rel="stylesheet" type="text/css" href="/media/css/app.css?v46">
Where 46 is the revision number.