The models are executed in alphabetic order, so check that the newly 
created model file is not executed before the db is defined.


On Wednesday, May 4, 2016 at 11:56:08 AM UTC-4, Vic Ding wrote:
>
> Hi all,
>
> I am using Pycharm together with web2py. I created a model file 
> models/db1.py in IDE and sync it back to the server through SSH. The file 
> is pickup by the server (I can see it in the web IDE) however, I get a 
> complain when visiting the site
> name 'db' is not defined
> How can I deal with this situation?
>
> Thanks!
>
> Cheers,
> Vic
>

-- 
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/d/optout.

Reply via email to