I have same problem it must be ipython 1.0.0... https://code.google.com/p/web2py/issues/detail?id=1710&start=100
2013/10/11 Tim Richardson <t...@growthpath.com.au> > work for me, python 2.7.5, ipython 1.1 on OS X > > > On Friday, 11 October 2013 13:16:17 UTC+11, Mark Li wrote: >> >> I recently upgraded to the new version of web2py from 2.5 (on >> Pythonanywhere); everything seems to work fine except for the interactive >> shell. >> >> Using the command "python web2py.py -M -S appname" worked fine with 2.5, >> but now it doesn't seem to import the database models. I get the error >> "name 'db' is not defined" when trying to query the database. This runs >> web2py in IPython 1.0.0 >> >> When I run Web2py in a plain python shell using "python web2py.py -M -P >> -S appname", then querying the database works fine. >> >> Not the biggest problem, but I do enjoy using IPython and wanted to see >> if others were having problems with the database models not importing (even >> with the -M option). I'm doing this on Pythonanywhere; the problem arose >> immediately after the web2py upgrade and not any Pythonanywhere changes. >> > -- > 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.