title: Pycharm Error importing while the application working
body: <p>I have this directory structure:</p>
  <pre><code>+--myproject
  ¦   +--code
  ¦   ¦    +--models
  ¦   ¦    ¦     __init__.py
  ¦   ¦    ¦     m.py
  ¦   ¦    ¦_
  ¦   ¦    
  ¦   ¦    +--resources
  ¦   ¦    ¦     __init_.py
  ¦   ¦    ¦     r.py
  ¦   ¦    ¦_
  ¦   ¦    
  ¦   ¦    app.py
  ¦   ¦    
  ¦   +--venv
  ¦   .gitignore
  ¦   requirements.txt
  ¦_
  </code></pre>
  <p>In <code>m.py</code> I have:</p>
  <pre><code>class M:
    pass
  </code></pre>
  <p>and in <code>r.py</code> I have:</p>
  <pre><code>from models.m import M  # HERE IS THE PROBLEM!
  
  class R:
    pass
  ...
  </code></pre>
  <p>and in <code>app.py</code>:</p>
  <pre><code>from resources.r import R
  </code></pre>
  <p>Please note that when I want to create the pycharm project, I go to</p>
  <hr />
  <p>File --&gt; New Project --&gt; choose myprojec directory as location --&gt;</p>
  <p>Create project existing sources --&gt; Open the project in a New Window --&gt;</p>
  <p><code>pip install -r requirements.txt</code> in pycharm terminal  --&gt;</p>
  <p><code>cd code</code> in my pycharm terminal --&gt; run <code>python app.py</code></p>
  <hr />
  <p>My code is working correctly.</p>
  <p>But Pycharm draws a red line under my import. It is giving me a false alarm. I know there should be some setting in Pychram to fix this? What is the fix for this?</p>