Well, the simplest answer is you used the python shell and not the
django shell via `python manage.py shell`.
The app not being in installed apps gives a slightly different error
and migrations have little to do with it as importing a model doesn't
hit the database.
So simply use `python manage.py
Did you include your app in the installed apps list in your settings.py
file?
Did you do the makemigration and migration after creating the model?
Check these two steps and then try again. That's what I'm suspecting given
the error trace.
On Sep 13, 2017 7:13 AM, "Abdul-Waris Dawuda" wrote:
>
Hello Everyone
Am new to Django and am currently facing a problem trying to import a class
from my models.
i get this error when i try to do that from the Shell. I am using Visual
Studio. i get this problem when i run my command to import;
>>> from app.models import Artist
Traceback (most re
3 matches
Mail list logo