Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1529

Flask app.run(ssl_context='adhoc') has no effect

$
0
0

I am trying to have a basic Flask app run on "https":

from flask import Flaskapp = Flask(__name__)@app.route('/')def hello_world():    return 'Hello World!'if __name__ == '__main__':    app.run(ssl_context='adhoc')

However, it starts on http:

In fact, I have a more elaborate Flask app that I moved onto https a couple of days ago, and it worked! However, I started it again today, and it got stuck on http://.

So, I created the basic script shown above to see if it works, but it doesn't.

I'll be grateful for any hints..

Thanks!


Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>