$ /opt/web-apps/web2py/web2py.py -K myappstarting scheduler for "myapp"...
Currently running 1 scheduler processes
Processes started
Process Process-1:
Traceback (most recent call last):
File "/usr/lib64/python2.6/multiprocessing/process.py", line 232, in _bootstrap
self.run()
File "/usr/lib64/python2.6/multiprocessing/process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "/opt/web-apps/web2py/gluon/shell.py", line 189, in run
_env = env(a, c=c, import_models=import_models)
File "/opt/web-apps/web2py/gluon/shell.py", line 131, in env
run_models_in(environment)
File "/opt/web-apps/web2py/gluon/compileapp.py", line 513, in run_models_in
restricted(code, environment, layer=model)
File "/opt/web-apps/web2py/gluon/restricted.py", line 205, in restricted
exec ccode in environment
File "applications/myapp/models/db.py", line 10, in <module>
request.requires_https()
File "/opt/web-apps/web2py/gluon/globals.py", line 119, in requires_https
redirect(URL(scheme='https', args=self.args, vars=self.vars))
File "/opt/web-apps/web2py/gluon/http.py", line 128, in redirect
Location=location)
HTTP: 303 SEE OTHER
--
cmd_options = request.global_settings.cmd_options
if not (cmd_options and cmd_options.scheduler):
request.requires_https()