Quantcast
Viewing all articles
Browse latest Browse all 14069

Download files uploaded to the "static" folder - Django

I need the .wav file that is created in the "static" folder to be able to be downloaded via a link inserted via HTML or viewed via FileResponse.

I tried things like:

<a href="{% static 'files/{{ filename }}' %}">Download: {{ filename }} </a>

But this didn't work because it doesn't find the resource.


Viewing all articles
Browse latest Browse all 14069

Trending Articles