Django ModuleNotFoundError: No module named while importing from a folder

Viewed 39

I'm trying to run a command that is supposed to import the models from an upper folder enter image description here

I'm trying to run crate_university.py which is on the assessments/university/commands directory This should be importing from the models which is located at assessments/university/ folder

I have the following code:

from django.core.management.base import BaseCommand

from university.models import University, TeacherDegree, Teacher

Buen when I try to run the command I get the following error:

enter image description here

0 Answers
Related