-
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 16 replies
-
I've transferred this to Pylance, but one key detail you cropped out of your screenshot is what environment you have selected (to verify it matches the one you have active in your terminal)? |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back to me.
How do I verify the one I should be using? The one I am using is the virtual environment I installed packages in. When I add code, where should I be?
***@***.***
Ed Dhyne
Direct: 954-608-6603
***@***.******@***.***>
www.linkedin.com
From: Brett Cannon ***@***.***>
Sent: Wednesday, May 24, 2023 2:26 PM
To: microsoft/pylance-release ***@***.***>
Cc: Ed Dhyne ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/pylance-release] Can't get addressability to Django (Discussion #4415)
I've transferred this to Pylance, but one key detail you cropped out of your screenshot is what environment you have selected (to verify it matches the one you have active in your terminal)?
—
Reply to this email directly, view it on GitHub<#4415 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFRBTF4BQEADX5BA6X2G2LXHZHEVANCNFSM6AAAAAAYNYNVXA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
We'd need to know the environment selected in VS Code. It's on the bottom right of the window: That's usually the reason why Pylance can't find your imports. It's not using the same environment that you're running with. But it could be other reasons too. |
Beta Was this translation helpful? Give feedback.
-
Yes that is the virtual environment I install Django in.
***@***.***
Ed Dhyne
Direct: 954-608-6603
***@***.******@***.***>
www.linkedin.com
From: Rich Chiodo ***@***.***>
Sent: Wednesday, May 24, 2023 2:59 PM
To: microsoft/pylance-release ***@***.***>
Cc: Ed Dhyne ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/pylance-release] Can't get addressability to Django (Discussion #4415)
We'd need to know the environment selected in VS Code. It's on the bottom right of the window:
[image]<https://user-images.githubusercontent.com/19672699/240714531-6dd47aa3-a2b7-424f-b0ca-81d14b6c53f3.png>
That's usually the reason why Pylance can't find your imports. It's not using the same environment that you're running with.
But it could be other reasons too.
—
Reply to this email directly, view it on GitHub<#4415 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFRBTGLUULRT5LXGCP647DXHZK5TANCNFSM6AAAAAAYNYNVXA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Okay the next thing we need is a log of Pylance's analysis. Directions for capturing that log can be found here: |
Beta Was this translation helpful? Give feedback.
-
Here is the log and requirements.txt
Ed Dhyne
Direct: 954-608-6603
***@***.******@***.***>
www.linkedin.com
From: Rich Chiodo ***@***.***>
Sent: Wednesday, May 24, 2023 3:03 PM
To: microsoft/pylance-release ***@***.***>
Cc: Ed Dhyne ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/pylance-release] Can't get addressability to Django (Discussion #4415)
Okay the next thing we need is a log of Pylance's analysis. Directions for capturing that log can be found here:
https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue
—
Reply to this email directly, view it on GitHub<#4415 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFRBTHLWO3PQNY2S24OMULXHZLN5ANCNFSM6AAAAAAYNYNVXA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
I added all the info below to git but I don’t see my lates update there.
How can I tell when Visual Studio Code update 1.78.2 was installed on my PC. It seams to have fixed my problem. I am working in the project in my NAS Z: drive and everything seam to be working when I am in my .VENV or Global. I will check it out further.
***@***.***
Ed Dhyne
Direct: 954-608-6603
***@***.******@***.***>
www.linkedin.com
From: Rich Chiodo ***@***.***>
Sent: Thursday, May 25, 2023 11:59 AM
To: microsoft/pylance-release ***@***.***>
Cc: Ed Dhyne ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/pylance-release] Can't get addressability to Django (Discussion #4415)
You can pick whichever one you want to run/install packages into. We generally recommend using a venv for doing this though.
I'm not sure what Z: is mapped to, maybe it's not a UNC path, but that might be why that venv doesn't work. VS code recently made it harder to use UNC paths because they're considered a security risk.
You could :
* Use the global python
* Create another venv somewhere on a local disk
—
Reply to this email directly, view it on GitHub<#4415 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFRBTFZB3T646TS7CC6K73XH56VRANCNFSM6AAAAAAYNYNVXA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
A few years ago I create www.imaginativesystems.com<http://www.imaginativesystems.com> in ASP.NET C#. I would like to replace it with a Python Django version. So far the tutorials I have tried only get me started. They don’t go into horizontal menus and vertical links like on my ISI site. Can you recommend any tutorials, courses, books or manuals that will help me. I would appreciate anything you can offer now that I can develop django projects in Visual Studio Code.
Thanks for everything.
Ed Dhyne
Direct: 954-608-6603
***@***.******@***.***>
www.linkedin.com
From: Rich Chiodo ***@***.***>
Sent: Thursday, May 25, 2023 11:59 AM
To: microsoft/pylance-release ***@***.***>
Cc: Ed Dhyne ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/pylance-release] Can't get addressability to Django (Discussion #4415)
You can pick whichever one you want to run/install packages into. We generally recommend using a venv for doing this though.
I'm not sure what Z: is mapped to, maybe it's not a UNC path, but that might be why that venv doesn't work. VS code recently made it harder to use UNC paths because they're considered a security risk.
You could :
* Use the global python
* Create another venv somewhere on a local disk
—
Reply to this email directly, view it on GitHub<#4415 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFRBTFZB3T646TS7CC6K73XH56VRANCNFSM6AAAAAAYNYNVXA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
After release update 1.78.2 was installed the other day, my problems have cleared up.