Home:ALL Converter>Flask, CherryPy and static content

Flask, CherryPy and static content

Ask Time:2012-02-17T01:13:16         Author:MKaras

Json Formatter

I know there are plenty of questions about Flask and CherryPy and static files but I still can't seem to get this working.

There's a snippet to deploy a Flask app on CherryPy here: http://flask.pocoo.org/snippets/24/

Is there a quick modification to have the wsgiserver serve the content in the static directory of the flask app?

The static content features of CherryPy seem to reside within CherryPy. And I am unsure on how to mount a CherryPy app that does nothing but serve static content while working with this snippet.

Author:MKaras,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/9315787/flask-cherrypy-and-static-content
yy