Thursday, April 27, 2023

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

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 <michaelstarr.coding@gmail.com> wrote:

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 wrong. My server runs in development mode (not in production yet), but there havev been some bugs that are hard to imagine are caused by this, but still (images not loading, CSS not loading).

Thanks.

Michael

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7977c43-90ef-4423-bb36-07c550bfda52n%40googlegroups.com.

No comments:

Post a Comment