Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
andriijas edited this page Sep 13, 2010 · 2 revisions

django-compress provides an automated system for compressing CSS and JavaScript files. By default, it only outputs compressed files, while not in DEBUG-mode. That means you can still debug and edit your source files while coding, and when going to production, the compressed files will be automatically generated.

Support for jsmin and CSSTidy is included and enabled by default (but can easily be disabled).

django-compress includes template tags for outputting the URLs to the CSS/JavaScript-files and some other goodies to improve the performance of serving static media.

See the following wiki-pages for more information:

  • Introduction
  • Features
  • Installation
  • Configuration
  • Usage
  • FarFutureExpires
  • Customization

django-compress was written by Andreas Pelme <andreas@pelme.se>. Feel free to contact me with questions, suggestions etc.

The Python-version of jsmin (http://www.crockford.com/javascript/jsmin.html) is included in django-compress. It was translated from to Python by Baruch Evan, from the original jsmin implementation by Douglas Crockford.

Clone this wiki locally