I have seen many answers on how to use django models outside the project. But I have no success with any. I was trying to implement this answer but I get an error. I have create
As the exception says there are no apps installed ergo you have no models yet.
from django.conf import settings
settings.configure(
DATABASE_ENGINE = 'sqlite3',
DATABASE_NAME = '/home/shivam/study/Python/automation/project/db.sqlite3',
# ....
INSTALLED_APPS=["myapp","myotherapp"]
)
from myapp.models import *