title: Importing from "django.(any module)" gives me this warning : could not be resolved from source
body: <p>I have just created a Django project in a virtual environment and I'm getting this error or warning I'm not quite sure :</p>
  <blockquote>
  <p>(module) django Import &quot;django.contrib&quot; could not be resolved from
  source Pylance(reportMissingModuleSource)</p>
  </blockquote>
  <p>in every line that has <code>import from django</code> .</p>
  <p>I have searched for this problem and I have tried these so far :</p>
  <ol>
  <li><p>editing Settings.JSON file in VScode by adding :</p>
  <pre><code>&quot;python.pythonPath&quot;: &quot;C:/Users/abdur/dev/cfehome/django_project/Scripts/python.exe&quot;,
  </code></pre>
  <p>Which is the python.exe location in my virtual environment</p>
  </li>
  <li><p>I have selected Python Interpreter to the one that is inside the virtual environment like this picture : <a href="https://i.stack.imgur.com/j3Jum.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j3Jum.png" alt="enter image description here" /></a></p>
  <p>I have tried the other choice too but didn't work as well .</p>
  </li>
  </ol>
  <p>However when I run <code>python manage.py runserver</code> it works without giving me any errors but I'm trying to understand why I'm getting these warnings .</p>