title: How to minify CSS/JS with mod-pagespeed and Django?
body: <p>Just installed a recent version of mod-pagespeed on my django instance and tried to minify CSS/JS with the following pagespeed.conf but in vain, even though remove_comments and collapse_whitespace seemed to work out.  </p>
  
  <pre><code>ModPagespeedEnableFilters rewrite_javascript,rewrite_css,flatten_css_imports
  ModPagespeedEnableFilters collapse_whitespace,elide_attributes
  ModPagespeedEnableFilters combine_javascript,remove_comments
  </code></pre>
  
  <p>In django templates, CSS/JS url was pointed by {{ STATIC_URL }}media/main.js, etc and the matching folder was set up as an alias at the apache setup, but JS/CSS (and its link) are all unchanged at all. </p>
  
  <p>I suspect mod-pagespeed didn't pick up the js/css due to the intervention from template engine..? </p>