title: Unable to import Django models in python script
body: <p>My code is here.
  I have tried different approach from stackoverflow and non of them worked.</p>
  
  <pre><code>import os
  import sys
  from django.conf import settings
  
  sys.path.append('/var/www/iaas/horizon')
  sys.path.append('/var/www/iaas/horizon/openstack_dashboard')
  os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
  
  from bill.models import MonthlyBills
  from django.contrib.auth import models
  </code></pre>
  
  <p>If I run python daemonize.py, here is the error message I get.
  I am confused because I have already included my django project path in my sys.path</p>
  
  <pre><code>raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
  ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path?): cannot import name connection
  </code></pre>
  
  <p>What I am trying to achieve is to create a python-daemon, I need to have an access in my django models.</p>
  
  <p>I hope someone who could point me where I am mistaking here.</p>