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 Tim Graham, 7 years ago

Component: UncategorizedDocumentation
Resolution: invalid
Status: newclosed
Type: UncategorizedCleanup/optimization

You're probably using an incorrect Django version for that tutorial. apps.py is created automatically in Django 1.9 and newer.

Note: See TracTickets for help on using tickets.
Back to Top