VERY EARLY ALPHA RELASE! Actually, it might not work at all.
The name Djammit and the code (or atleast the ideas) has pretty much been ripped from DocumentCloud's Jammit which is a much more advanced and mature tool for Ruby on Rails.
Start out by setting your STATIC_ROOT (ex: /var/www/project/static) and your STATIC_URL (ex: /static/) settings. Those settings will be used when Djammit looks for files matching the patterns you specify.
You tell Djammit which files to include by setting the DJAMMIT_JAVSCRIPTS setting as a dictionary of packages with patterns.:
Now you need to add
Right now Djammit also runs Django's management command
collectstatic on every request
which will move changed files to your static root folder. If you are using django-staticfiles
with Django pre 1.3 or some other app you can specify which collect command to run by setting
You can change the template files extension with the DJAMMIT_TEMPLATE_EXTENSION setting and the namespace (defaults to JST) with the DJAMMIT_TEMPLATE_NAMESPACE setting. By default the template engine used is underscore.js' _.template method. You can change that to something else using the DJAMMIT_TEMPLATE_FUNCTION setting.