title: How do I fix no module found error in Django?
body: <p>I'm reading the Django docs and I'm going through the first project called <strong>&quot;mysite&quot;</strong> and it has an app called <strong>polls</strong></p>
  <p><strong>This is my file structure :</strong></p>
  <pre><code>\pythonproject
    \mysite
        \mysite
        \polls
            \migrations
             __init.py__
             admin.py
             apps.py
             models.py
             tests.py
             urls.py
             views.py   
     __init__.py   
     db.sqlite3
     manage.py
  </code></pre>
  <p>I am in this location : <strong>polls\urls.py</strong> and I want to import <strong>&quot;polls\views.py&quot;</strong></p>
  <p>So I type in this :</p>
  <pre><code>from mysite.polls import views
  </code></pre>
  <p>And I get the error when I ran:</p>
  <pre><code>python manage.py test
  </code></pre>
  <p>This is the error :</p>
  <pre><code>No module found &quot;mysite.polls&quot; 
  </code></pre>
  <p><strong>The error refers to the second line of code in polls\urls.py</strong></p>
  <p>I am using <strong>pycharm</strong> and my <strong>Django version is &quot;3.2.8&quot;</strong>
  My <strong>python version is &quot;3.10&quot;</strong></p>