Opened 13 years ago

Closed 13 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

Description

In part 2 of the tutorial (https://docs.djangoproject.com/en/1.3/intro/tutorial02/), 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 by Julien Phalip, 13 years ago

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 http://groups.google.com/group/django-users

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