create file outside of web2py using IDE

42 views
Skip to first unread message

Vic Ding

unread,
May 4, 2016, 11:56:08 AM5/4/16
to web2py-users
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

DenesL

unread,
May 9, 2016, 8:23:54 PM5/9/16
to web2py-users
The models are executed in alphabetic order, so check that the newly created model file is not executed before the db is defined.
Reply all
Reply to author
Forward
0 new messages