Problems getting the Heroku example app for Python run locally with SSL Problems getting the Heroku example app for Python run locally with SSL heroku heroku

Problems getting the Heroku example app for Python run locally with SSL


Difficult to ascertain why "rv" fails without inspecting the local environment, scripts, installed modules and the werkzeug code, which claims SSL is supported from v0.6 onwards.

The easiest solution is to install the grandpa of web servers apache on your local machine, add in mod_ssl module and generate those SSL certs. Lastly, add mod_wsgi as described in Flask's help page to get your app up and running.

Note: installation may be daunting for first timers, but once you get going, apache is a workhorse and been extremely reliable to me over the past 15 yrs.


It is a bug in Werkzeug, that got fixed.

Change the Werkzeug version in the requirements.txt file to at least 0.8.2 and run pip install -r requirements.txt to upgrade.