Force SSL/HTTPS and non-www in web2py

Update 02.08.2018: Code is updated to use just one line to force https: request.requires_https() ======= I read this https://groups.google.com/forum/#!topic/web2py/RzJ4pYtAWF4 and https://stackoverflow.com/questions/26802850/pythonanywhere-web2py-redirect-to-https then I realized “cronjob” problem described in these answers are no longer relevant since `scheduler` has long since replaced `cron` I created a new model secure.py and add: ########## FORCED SSL non-www ########## session.secure() […]