On Thursday, October 20, 2016 at 3:28:13 PM UTC-7, 黄祥 wrote: > > *[...]* > *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? >
When I try -S, request.env.server_software has the value None, which makes sense because we aren't getting requests from the wire (er, from a socket), we're getting a request from the command line. /dps -- 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.

