Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-29 Thread Michael Starr
And yeah, django is installed in the venv. Michael On Saturday, April 29, 2023 at 10:40:01 AM UTC-7 Michael Starr wrote: > Thanks. I already have a venv, to answer the first post, and the second, > yes, it says 3.11.2. I think VSCode just has a bug. It doesn't bother me > and my app works in

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-29 Thread Michael Starr
Thanks. I already have a venv, to answer the first post, and the second, yes, it says 3.11.2. I think VSCode just has a bug. It doesn't bother me and my app works in all other respects. Thank you for the input. Michael On Friday, April 28, 2023 at 7:11:57 AM UTC-7 ALBERT ASHABA AHEEBWA wrote:

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-28 Thread ALBERT ASHABA AHEEBWA
This is a wild suggestion, but as someone here mentioned, your vscode might be pointing to the wrong interpreter. Check at the bottom bar of your vscode with a .py file open. Next to {}python you should see what environment you are using. eg. 3.11.3 64-bit or 3.11.3('.venv':venv) The latter is

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-28 Thread Emalexogah Ogah
If you felt the problem was vs code, I have a suggestion. Try it out and if it works, get back to me. Open your comman prompt terminal and input Python -m venv venv (press enter) Venv/static/activate (press enter) Then install django again On Fri, Apr 28, 2023, 3:27 AM Michael Starr wrote: >

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Michael Starr
Thank you for the replies. I am overwhelmed right now but will check back on them later. I think you two are right that it's the IDE. It's VSCode (I don't know what version). I was just suspicious b/c there were some strange bugs in my django project. I won't worry about it. If it annoys me

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Khaleel Ahmed H. M. Shariff
Hi Michael May Peace, Blessings & Mercy of Almighty God be on you! do you know how to modify the sys.path to add the directory where the listed modules are installed? On Linux/UNIX Execute the find command to locate the directory where the modules are installed and include the same in the path

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Reddy Tintaya
Should I suppose that it appears like error only in your editor, but the app runs with no problem? I guess the error is that your IDE is not pointing to the correct python interpreter > On 27 Apr 2023, at 16:05, Michael Starr wrote: > > I did pip install django on my venv, which is

Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Michael Starr
I did pip install django on my venv, which is activated, and it reported already installed. But the following modules are reporting the error in the subject line: django.db models django.utils.crypto django.urls django.contrib admin django.shortcuts django.views.generic I don't know what's