Running a Flask application under the Apache WSGI module

Python is a fantastic programming language and Flask is an equally fantastic micro framework for Python… at least as far as I can tell from my experiences so far. However, as I’m sure you are already aware, Python just like Ruby, is not a native web language, like PHP is. So to get your Python code running on a production web server can be tricky.

The Flask website does detail ways of getting your code deployed on Apache, CGI, Fast CGI and multiple standalone WSGI containers. However I found the Flask documentation to be incomplete and not very helpful. Clearly from the amount of complaints on stack overflow, I’m not the only one. So today I’m focusing on deploying to an Apache server, for all you lovely people.

Continue reading