title: Sphinx autodoc not importing modules
body: <p>I am writing some documentation for a Django project using Sphinx.</p>
  <p>My project (Django 1.4) looks like this:</p>
  <pre><code>/funproject
     /documentation
         # this is where sphinx files live
         /source
             conf.py
             ... 
     /funproject
         __init__.py
         settings.py
         admin.py
         models.py
     /app1
     /app2
     fabfile.py
     manage.py 
  </code></pre>
  <p>I have Sphinx setup in the conf.py:</p>
  <pre><code> import sys, os
  
   sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
  
   os.environ['DJANGO_SETTINGS_MODULE'] = 'funproject.settings'
  
   from funproject import settings
   from django.core.management import setup_environ
   setup_environ(settings)
  </code></pre>
  <p>So in my Sphinx source files I can do this:</p>
  <pre><code> .. automodule:: app1.models
      :members: 
  </code></pre>
  <p>which works fine. However, these two examples do not work:</p>
  <p>1.</p>
  <pre><code> .. automodule:: funproject.models
      :members: 
  </code></pre>
  <ol start="2">
  <li></li>
  </ol>
  <pre><code> .. automodule:: fabfile
      :members: 
  </code></pre>
  <p>The second works if I move the fabfile into app1 and use <code>app1.fabfile</code></p>
  <p>I'm guessing I have some issue with my <code>conf.py</code> but I have tried many derivations but I cannot import my <code>fabfile.py</code> unless it is under an app dir (though under <code>/funproject</code> it doesn't work either).</p>