title: Django: auto minifying css/js files before release
body: <p>I have following case: I want to use uncompressed js/css files during development (to debug js for example) but on production I want to switch automatically to minified versions of that files.</p>
  
  <p>some simple solution is to put in your template:</p>
  
  <pre><code>&lt;script src="some_js.{% if not debug %}min.{% endif %}js"....
  </code></pre>
  
  <p>but this require manully providing that such file exist and to do minifaction manullay after original file change.</p>
  
  <p>How do you accomplish this in your projects? Is there any tool for this?</p>