developersociety / django-template

Django templates for DEV Django sites
6 stars 0 forks source link

Allow fab get_media to filter on file extension #256

Closed tombola closed 2 years ago

tombola commented 2 years ago

I often comment out get_media from the get_data make command because I don't want to wait for all that to download, and don't often need it all anyway.

Thought might be helpful to someone else, also on some sites might want this to be behaviour for make reset even.

In some circumstances I have found it useful to at least be able to avoid downloading pdfs etc and just skip to the images that affect appearance/layout of site. Often then stop the get_media halfway anyway.

tombola commented 2 years ago

On second look, it seems you could alternatively accomplish similar by specifying directory, eg fab get_media:directory=images so this may not have value.

Happy for PR to be closed if not useful.