#35633: i found a bug in the documentation version 4.2 in Writing your first
Django
app, part 5
------------------------------+-----------------------------------------
Reporter: amir20002000 | Type: Bug
Status: new | Component: Uncategorized
Version: 4.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+-----------------------------------------
in the section "Create a test to expose the bug" of the
[https://docs.djangoproject.com/en/4.2/intro/tutorial05/ tutorial 5] i
write the exact code in my test.py file but when i runing the "python
manage.py test polls" command in the next section i get this error:
RuntimeError: Model class mehr_paj.polls.models.Question doesn't declare
an explicit app_label and isn't in an application in INSTALLED_APPS.
i figure out if chnage this line of test code "from .models import
Question" to this "from polls.models import Question" the problem is
solved and test code running with out the problem
--
Ticket URL: <https://code.djangoproject.com/ticket/35633>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070190ef690c3b-12d23946-316c-4fea-9a99-86509a5ebbe1-000000%40eu-central-1.amazonses.com.