Monster Under the Bed (django-mub) is a static-files (css & js) collector and minifier.

Quickstart

  1. Install with pip (currently only available from github repository):
    pip install git+https://github.com/Brant/django-mub.git@master

    Or add it to your requirements.txt file:
    # requirements.txt
    git+https://github.com/Brant/django-mub.git@master

  2. Add 'mub' to your INSTALLED_APPS setting:
    INSTALLED_APPS = (
        ...
        'mub',
        ...
    )

  3. Load the 'mub_tags' templatetags in your template:
    <!doctype html>
    <html>{% load mub_tags %}
    ...

    And use the 'add_static' tags provided by the mub_tags library:
    <head>
    	...
    	{% add_static 'css'%}
    </head>
    <body>
    	...
    	{% add_static 'js'%}
    </body>

To review configurable options, see the settings documentation