Opened 8 years ago

Closed 8 years ago

#16871 closed Uncategorized (invalid)

import error in docs

Reported by: Jon Parise Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


In part 2 of the tutorial (, under the "Make the poll app modifiable in the admin" section, there is an error in the code block. The first import line reads: "from polls.models import Poll" but if the module is inside the polls directory, then this import fails. To get it to work, I had to change this line to "from models import Poll"

Change History (1)

comment:1 Changed 8 years ago by Julien Phalip

Resolution: invalid
Status: newclosed

Thanks a lot for the report, but the tutorial seems correct here. I suspect there might be an issue with how your Python path is set up. Please check again in part 1 of the tutorial. You may also ask for further assistance on

If you can resolve your issue and have suggestions for improving/clarifying the tutorial, please feel free to reopen this ticket.

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