How to import my django app's models from command-line?
You probably need to start a Shell first
python manage.py shell
Then run your
from vc.models import *
python has a query system called ORM which are python queries based on MYSQL, we can apply these (queriyset) so they are called in django
go to the console and you must go to where your django project is and of course where the manage.py file is located and you will place the following ones:
python manage.py shell
you will notice that the shell will open there, we must import all our models that we want to perform queryset d as follows:
from APPS.models import Class
or
from .models import *