not able to import a file from an app to another
<p>I have a django project with srtucture like this:</p>

<p><strong>main_project</strong></p>

<p>----main_project</p>

<p>&lt;------libs</p>

<p>&lt;&lt;---------exceptions.py</p>

<p>----project_a</p>

<p>----project_b</p>

<p>In the views.py of <em>project_a</em> I am trying to import a folder named <strong>libs</strong> of <em>main_project</em> and a file from <em>libs</em>  called <em>exceptions.py</em>, but I am getting the error<br>
<code>ImportError: No module named libs.exceptions</code></p>

<p>My code is :</p>

<pre><code>from main_project.libs.exceptions import (
    APIException400,
    APIException405,
    APIException403,
    exception_handler_dispatcher,
)
</code></pre>

<p>Can someone tell me what am I missing here?
With reference to <a href="https://stackoverflow.com/a/31407131/5080347">https://stackoverflow.com/a/31407131/5080347</a> answer I even tried :</p>

<pre><code>from main_project.main_project.libs.exceptions import (
        APIException400,
        APIException405,
        APIException403,
        exception_handler_dispatcher,
    )
</code></pre>

<p>but doesn't work.</p>