From 9735477c3596e58b0673570ede2356835113fbd0 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 19 Mar 2016 12:05:19 -0500 Subject: [PATCH] requires version --- applications/welcome/models/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/welcome/models/db.py b/applications/welcome/models/db.py index 04acf4b3..68660581 100644 --- a/applications/welcome/models/db.py +++ b/applications/welcome/models/db.py @@ -5,6 +5,9 @@ ## File is released under public domain and you can use without limitations ######################################################################### +if request.global_settings.web2py_version < "2.13.3": + raise HTTP(500, "Requires web2py 2.13.3 or newer") + ## if SSL/HTTPS is properly configured and you want all HTTP requests to ## be redirected to HTTPS, uncomment the line below: # request.requires_https()