Opened 14 years ago
Closed 14 years ago
#16871 closed Uncategorized (invalid)
import error in docs
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"
Note:
See TracTickets
for help on using tickets.
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.