Your CSS and JS should not go through Django on your production system. You need to configure Apache (or Nginx or something else) to serve them, and when you do, you can configure gzip compression there, not Django.
And no, compression and minification are not the same thing. GZip compression is performed dynamically by the server when it serves your request, and the browser transparently decompresses the file when it receives it. Minimization is the process of removing comments and spaces from files, and sometimes combining several files into one (i.e. One css and one javascript, not a lot). This is done when you deploy your files on the server β using django-compress, as Ashok suggests, or using something external, such as a YUI compressor , and the browser does not try to restore the original file β this would be impossible and not necessary.
source share