#VS Code Intellisense

7 messages · Page 1 of 1 (latest)

river matrix
#

How can I get VSCode Intellisense to recognize Django-generated methods and relationships between models? Pylance seems able to see Django methods because Call Argument Name Inlay Hints work fine, and it can see the fields I've declared on the model, but calls to Djagno-generated methods cause

Cannot access member "<x>" for type "<y>" 
Member "<x>" is unknownPylancereportGeneralTypeIssues

I'm using Poetry and load the .venv by running poetry shell followed by code . from the project root. The Python interpreter is set to the Python in that .venv. Python analysis is given ${workspaceFolder}/.venv as an extra path. Python analysis indexing indexes installed third-party libraries.

Is there something else I can do to get VSCode Intellisense to recognize Django-generated methods?

quartz zealot
#

Please don't cross post to multiple channels. Please delete one of your posts

river matrix
quartz zealot
#

Both are valid.

#

But just sticking to one place keeps the discussion consistent

pale elbow
river matrix
#

Thanks John! I tried that (multiple times) but to no avail. Any other suggestions?