Hello, can anyone help me?
I’m doing the first django application tutorial, I’m in part 05 and I’m having problems with “tests.py”, when I run “python manage.py test polls”, it returns the following error message:
“RuntimeError: Model class mysite.polls.models.Question doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.”
However, ‘polls.apps.PollsConfig’ has already been added to INSTALLED_APPS, and the error continues to appear.
I started “from polls.models import Question”, I managed to start the entire test through the shell, but in tests.py it gives this error