web2py trouble with variables defined in models (or built-ins)

I am developing in web2py, and I notice that all occurrences of web2py implicit variables (defined in files other than the current one), such as db, session, request, and more, are marked as errors (missing references) from the inspector.  If I turn down warnings for missing references, I also lack warnings for things like:
a = b + 3
where b has never been defined.
Is there a way to have PyCharm's analysis respect the (admittedly peculiar) way in which in web2py you can define a variable e.g. in a model file, and then use it in a controller?
2 comments
Comment actions Permalink
When opening the file a second time, all the occurrences of variables defined in models are recognized.
However, built-ins such as session, request, URL, A, SQLFORM, ... are not.
In my project, web2py appears listed as an external library, in case that matters.
0
Comment actions Permalink
Ok solved.  This happened because I tried to create a project, rather than just opening the top-level web2py directory.  I am leaving the thread here in case it can be useful to others.
0

Please sign in to leave a comment.