Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Django asset manager

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 base_project
Octocat-spinner-32 docs
Octocat-spinner-32 mediagenerator
Octocat-spinner-32 .deps
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .hgeol
Octocat-spinner-32 .hgignore
Octocat-spinner-32 CHANGELOG.rst
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

Improve your user experience with fast page loads by combining, compressing, and versioning your JavaScript & CSS files and images. django-mediagenerator eliminates unnecessary HTTP requests and maximizes cache usage.

Supports App Engine, Sass, HTML5 offline manifests, Jinja2, Python/pyjs, CoffeeScript, and much more. Visit the project site for more information.

Most important changes after version 1.11

  • Added Dust.js support (requires a version with dustc)

  • Added Hogan.js support

  • Added UglifyJS as a JavaScript compressor option

  • Added yUglify (a Yahoo wrapper around UglifyJS and cssmin) as a JavaScript and CSS compressor option

  • Improved the performance of development mode with caching

  • Always delimit JavaScript files with semicolons in bundles before running compression. This fixes e.g. bundling underscore.js 1.4 after jquery.history.js 1.7.

  • {% get_media_urls %} assignment tag for getting bundle URLs as a list in a template variable. Requires Django 1.4 or newer. Usage:

    {% get_media_urls "my_bundle.js" as bundle_urls %}
    {% for url in bundle_urls %}...{% endfor %}
    

Most important changes in version 1.11

  • Added LESS support
  • Fixed an incompatibility with App Engine 1.6.0 on Python 2.7

See CHANGELOG.rst for the complete changelog.

Something went wrong with that request. Please try again.