title: from . import models works, but import models doesn't
body: <p>I'm working on a webproject and using Django. In my <code>views.py</code> file I want to access the database for which I want to import my <code>models</code>.</p>
  
  <p>Here's my directory structure:  </p>
  
  <pre><code>├── project  
  │   ├── __init__.py  
  │   ├── settings.py  
  │   ├── urls.py  
  │   └── wsgi.py  
  ├── app  
  │   ├── admin.py  
  │   ├── __init__.py  
  │   ├── models.py  
  │   ├── tests.py  
  │   └── views.py  
  ├── manage.py
  </code></pre>
  
  <p>In my <code>views.py</code> I'm doing <code>import models</code>, but I'm getting an <code>importError</code>. Although <code>from . import models</code> works. </p>
  
  <p>Why?</p>
  
  <p>But the following works without any error:</p>
  
  <pre><code>├── __init__.py
  ├── mod1.py
  └── mod2.py
  </code></pre>
  
  <p>mod1.py</p>
  
  <pre><code>import mod2
  
  print(mod2.foo())
  </code></pre>
  
  <p>mod2.py</p>
  
  <pre><code>def foo():
      return "Hello"
  </code></pre>