Is it possible the request value, run well in terminal too like in browser?
*private/appconfig.ini*
[environment]
type = dev

[dev_environment]
server_name     = test.local
folder     = /Users/test/site/web2py/applications/test/
server_software = Rocket 1.2.6

*models/db.py*
environment_base = (request.env.server_name != myconf.get(myconf_env + '_' 
+ 'environment.server_name') ) or \
  (request.folder != myconf.get(myconf_env + '_' + 'environment.folder') )

version_base = (request.env.server_software != myconf.get(myconf_env + '_' 
+ 'environment.server_software') )

if environment_base or version_base:
raise HTTP(500, "Please contact your IT Support!")

*Run in terminal*
python ~/site/web2py/web2py.py --nogui --no-banner -S test -M -R 
~/site/web2py/applications/test/modules/test_functional_test.py

It return an error when running in terminal : Please contact your IT 
Support! 
(in browser it run well)

Is there a way to have it run well in both terminal and web browser?

thanks and best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to