Django - Can't import app names - Unresolved Reference
<p>I'm starting with a project and I suddenly can't import App names. <strong>PyCharm</strong> says that app is <code>Unresolved Reference</code> and when I try to start shell and import app, it says that it's unrecognized. </p>

<p>Do you know where could be the problem? I've checked whether the correct <code>venv</code> is activated.</p>

<p><a href="http://i.stack.imgur.com/LVLIC.png" rel="nofollow"><img src="http://i.stack.imgur.com/LVLIC.png" alt="enter image description here"></a></p>

<p>SHELL:</p>

<pre><code>&gt;&gt;&gt; from ProductSpyWeb import Api
Traceback (most recent call last):
  File "&lt;console&gt;", line 1, in &lt;module&gt;
ImportError: cannot import name Api
</code></pre>

<p><strong>APPS in Settings.py</strong></p>

<pre><code>INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'MainApp',
    'Api',
]
</code></pre>

<p>You probably want to use <code>import Api</code> - the same way you just have <code>Api</code> in <code>INSTALLED_APPS</code> instead of <code>ProductSpyWeb.Api</code>.</p>

<p>Assuming that you aren't doing anything strange with your Python path, when you use <code>from ProductSpyWeb import Api</code> from the Django shell it's trying to import from <code>ProductSpyProject/ProductSpyWeb/ProductSpyWeb/Api</code>.</p>

python django