title: Django: Auto-generating a list of files in a directory
body: <p>I use an image gallery app on my website. At present I drop image files in a directory, and write img html tags for each image manually. Is it possible to make django create a list of files in the directory automatically, and send the json output to the gallery app, so that I can make javascript to generate <code>&lt;img&gt;</code> elements for each image files. Or, whenever gallery app is requested, can I directly make django to auto-generate <code>&lt;img&gt;</code> elements for each of the files in a directory.</p>