Context: I am trying to import 2 classes located in models.py into another python file called admin.py. The django docs say to use this syntax:
from .models import Question, Choice.
This is the file structure: file structure
Question: Why is it, when I use from . import models
and then in the same file call models.Question
and models.Choice
I get an error for: "ModuleNotFoundError: No module named 'models' "
In another file in the same directory, this syntax is used to import a file and call a function within the file without any issues: from . import views
... views.index