Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 18995

Download files uploaded to the "static" folder - Django

$
0
0

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 18995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>