request.requires_https, thanks Ross

This commit is contained in:
Massimo Di Pierro
2011-12-09 20:46:07 -06:00
parent 0844774073
commit ac82f1e4e7
3 changed files with 17 additions and 3 deletions
+4
View File
@@ -5,6 +5,10 @@
## File is released under public domain and you can use without limitations
#########################################################################
## if SSL/HTTPS is properly configured and you want all HTTP requests to
## be redirected to HTTPS, uncomment the line below:
# request.requires_https()
if not request.env.web2py_runtime_gae:
## if NOT running on Google App Engine use SQLite or other DB
db = DAL('sqlite://storage.sqlite')