liveBook · Manning

Distill-local

As explained in Django in Action

distill-local is a django-distill management command that generates a static site in a specified output directory.

distill-local generates a static site from a Django project. Configure the project’s URLs and organize its static files first; then provide an output directory for the generated site. section 13.5

The command reuses Django’s templates, views, development server, and static-file setup instead of requiring a separate static-site tool. It expects collectstatic to work and uses that destination for static assets. section 13.5

Generate and package the site

Run distill-local with one argument: the output directory. After generation, zip that directory and deploy it wherever the static site will be hosted. section 13.5

How Django in Action covers it

How deep it goes
Explains the command’s single output-directory argument and packaging workflow, but stops short of generator internals.
Examples
Uses a generated output directory that can be zipped and deployed as a static site.
What it assumes
Assumes configured URLs, organized static files, and working collectstatic behavior.
What you can do after
Operate a Django static-site build by running distill-local and packaging its output for hosting.
How it connects
Connects Django URLs, templates, views, static files, collectstatic, development-server testing, and deployment.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Django in Action. The section links point to the parts of the book it draws on.