Opened 7 years ago
Closed 7 years ago
#28818 closed Cleanup/optimization (invalid)
Tutorial 02: Missing PollsConfig class - explanation required
Reported by: | bashdx | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.11 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Just going through the tutorial I had trouble to reference polls.apps.PollsConfig class simply because neither the module nor the class existed in the polls directory. I got the error "no module named 'polls.apps'".
Using the documentation https://docs.djangoproject.com/en/1.11/ref/applications/ I was able to setup the module and the class, yet it was not obvious in the first place. It would be good to include this as a hint, if other solutions don't work.
Change History (1)
comment:1 by , 7 years ago
Component: | Uncategorized → Documentation |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Type: | Uncategorized → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
You're probably using an incorrect Django version for that tutorial.
apps.py
is created automatically in Django 1.9 and newer.