I was struggling with sending the downloadable Django zip with many files to browser, because many tutorials in the web are obsolete, like the one which was my inspiration to come up with what I will share with you:
Django - Create A Zip of Multiple Files and Make It Downloadable
THE SOLUTION
We're not using many functions in this projects but rather blocks of code with docstrings, but you can easily pack this code into a function: