Fork 0
Django application for minimizing static files and using simple html5 template with jQuery and modernizr. It's mirror repository, please fork from bitbucket:
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Gökmen Görgen fe60a6305e Merge pull request #6 from gkmngrgn/master 11 years ago
djangominimizer fix STATIC_URL 11 years ago
docs added docs. 11 years ago
website style update. 11 years ago
.gitignore ignore settings_local.py 11 years ago
MANIFEST.in not required. 11 years ago
README.rst request middleware is request to use minimizer_mobile value. 11 years ago
requirements-dev.txt added docs. 11 years ago
requirements.txt fix requirements 11 years ago
setup.py version bump: lessCSS support added. 11 years ago


Django Minimizer
Django Minimizer compresses static files and provides html5 layout that is ready for extending to your project templates. It uses YUI compressor for compressing static files, and it has included Javascript files like modernizr, jquery, etc. Base template created with html5boilerplate.

This application also supports CoffeScript and LessCSS optionally. If you prefer to use CoffeeScript or LessCSS, you'll need to Node for compiling static files to .js or .css.

Django Minimizer has no dependency other than Django, but it needs to a cache_backend for getting compressed file timestamp information. If you prefer memcached, install `python-memcached` package.


pip install -r requirements.txt

Other dependencies:

- Java >= 1.4 (for YUI Compressor)
- Node >= 0.6.0 (for CoffeeSript compiler)

- Add `djangominimizer` to INSTALLED_APPS.
- Add required template context processors for djangominimizer:



- Then, you should configure your cache_backend. For example:


'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',

- If you are using CoffeeScript instead of Javascript, don't forget to add
this line to your `settings.py`: