This solved the problem, actually i was trying to test the code before using it in app, kind of like dbshell in Rails.
On Tue, Nov 29, 2011 at 6:49 PM, Ross Peoples <[email protected]>wrote: > You typically have to use the web2py shell: > > python web2py.py -S appname -M > > If you are trying to use gluon libraries by themselves in some other > application (without using web2py at all), then you either need to put > web2py on your PYTHONPATH or copy the needed libraries where you want to > use them. >

