title: python import error
body: <p>what's wrong with my imports?</p>
  
  <p>App folder structure:</p>
  
  <p>myapp/</p>
  
  <ul>
  <li>models/models.py contains <code>SpotModel()</code></li>
  <li>tests/tests.py contains TestSpotModel(unittest.TestCase). tests.py imports <code>from myapp.models.models import *</code> which works like a charm</li>
  <li>scripts/import.py contains <code>from myapp.models.models import *</code></li>
  </ul>
  
  <p>the problem is that import.py when executed results in an error: </p>
  
  <pre><code>ImportError: No module named myapp.models.models
  </code></pre>
  
  <p>but tests.py runs.</p>
  
  <p>I have <code>__init__.py</code> files in <code>myapp/__init__.py</code>, <code>myapp/models/__init__.py</code>, <code>myapp/tests/__init__.py</code> and as mentioned, running the unit tests using nosetests works as intended.</p>