Use minify-html, the extremely fast HTML + JS + CSS minifier, with Django.
minify and versiontag assets with zero configuration
Flexible static resources for web applications
Lightweight application for managing versioned static files and minifying them for production use.
HTML minifier for Python frameworks (not only Django, despite the name).