Writing your first Django app, part 5 - error import models

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

Please post your test.py file here.

When posting code here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted.

I managed to solve it, it was to remove the init that was in the root folder, I don’t know the reason, but people on the forum asked to do this and it worked!