Python ImportError: No module named
<p>I try to run django project, which has this kind of structure: 2 apps in one project:</p>

<p>projectx</p>

<pre><code>âââapps
â  âââ app1
|  |    âââ __init__.py
|  |    âââ ...
â  âââ app2
|       âââ __init__.py
|       âââ ...
âââproject
â  âââ settings.py
â  âââ urls.py
â  âââ __init__.py
|  âââ ...
âââ manage.py
âââ ...
</code></pre>

<p>It has two apps in one project. Well, while running
    <code>python manage.py runserver</code> I get <code>ImportError: No module named apps</code></p>

<p><code>$ echo $PYTHONPATH</code>  gives<br>
/home/alexander/Work/projectx</p>

<p>Django version 1.9.8</p>

<pre><code>INSTALLED_APPS = [
...

'apps.app1',
'apps.app2'
]
</code></pre>

<p>You should add <code>__init__.py</code> inside your <code>apps</code> directory</p>

<pre><code>    âââapps
    âââ__init__.py
    â  âââ app1
    |  |    âââ __init__.py
    |  |    âââ ...
    â  âââ app2
    |       âââ __init__.py
    |       âââ ...
</code></pre>

python django