Generally, you do not want to serve static files using WSGI. WSGI is used to create dynamic content using Python. Static files are, by definition, not dynamic content, so you donβt need the extra WSGI layer or any web application you created on it. Instead, your best bet is to set up a web server (apache, nginx, iis, etc.) to serve static files separately with the WSGI application.
Edit: Interestingly, I ONLY found myself in this place after you clarified your problem. Here I found something you could appreciate. It is called "static."
http://lukearno.com/projects/static/
https://bitbucket.org/luke/static/
source share