reportMissingModuleSource in apps.py of an empty Django project

Richard Wojciechowski 20 Reputation points
2023-04-20T12:04:50.29+00:00

I've just installed Visual Studio 2022 and created an empty Django project. When I run the server, Django is installed. But I can see that the editor highlights some warnings such as, in apps.py

from django.apps import AppConfig

I have reportMissingModuleSource Import "django.apps" could not be resolved from source I opened the file in Visual Code Studio and everything looks good. Has anyone an idea of what wrong with Visual Studio 2022? Or what I did wrong, even I just followed the steps of the MS tutorial (https://learn.microsoft.com/fr-fr/visualstudio/python/learn-django-in-visual-studio-step-01-project-and-solution?view=vs-2022). Having "wrong" warning is VS 2023 will very quickly be confusing...

Developer technologies Visual Studio Setup
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-04-20T13:47:38.0533333+00:00

    Hi @Richard Wojciechowski, 

    Welcome to Microsoft Q&A! 

    You issue is related to Python and Django, please report it in Developer Community

    Thanks for your understanding! 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.