Have you tried --
I have a website build using python3.4 and flask...I have generated my own self-signed certificate and I am currently testing my website through localhost.
I am using the python ssl module along with this flask extension: github.com/kennethreitz/flask-sslify
context = ('my-cert.pem', 'my-key.pem') app = Flask(__name__) sslify = SSLify(app) ... if __name__
You don't need a real SSL certificate, BTW. Just need to differentiate DEVELOPMENT from PRODUCTION.
You can also adapt this code, as some of the things are Heroku-specific.
help.heroku.com/J2R1S4T8/can-herok...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Have you tried --
python flask redirect to https from http
I have a website build using python3.4 and flask...I have generated my own self-signed certificate and I am currently testing my website through localhost.
I am using the python ssl module along with this flask extension: github.com/kennethreitz/flask-sslify
…You don't need a real SSL certificate, BTW. Just need to differentiate DEVELOPMENT from PRODUCTION.
You can also adapt this code, as some of the things are Heroku-specific.
help.heroku.com/J2R1S4T8/can-herok...