title: Django model outside of django
body: <p>I have a non django project for which i would like to use the django models for data access layer.</p>
  
  <p>Added the models lib in <code>requirements.txt</code><br>
  <code>django-model-utils==3.1.1</code></p>
  
  <p>And code set it up like below:</p>
  
  <pre class="lang-python prettyprint-override"><code>from django.conf import settings
  from django.db import models
  
  settings.configure(
    DATABASE_ENGINE='django.db.backends.mysql',
    DATABASE_NAME='***',
    DATABASE_USER='***',
    DATABASE_PASSWORD='***',
    DATABASE_HOST='***',
    DATABASE_PORT='***')
  
  class Bus(models.Model):
    class Meta:
      db_table = 'my_custom_bus'
  
    bus_name = models.CharField(max_length=20)
    bus_description = models.CharField(max_length=100)
  </code></pre>
  
  <p>But when i ran the above code, i am getting the following error:
  <code>django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.</code></p>
  
  <p>In order to fix the above error, i ran:  </p>
  
  <pre class="lang-python prettyprint-override"><code>import django  
  django.setup()
  </code></pre>
  
  <p>Now when i try, i get:<br>
  <code>Bus doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS</code></p>
  
  <p>Am i missing some setting here or is there any light weight model only lib in python?</p>