Opened 13 years ago

Closed 13 years ago

#3921 closed (worksforme)

Error report - Your first Django app, part 1,2

Reported by: Ondrej.Suchomel Owned by: anonymous
Component: Documentation Version: 0.96
Severity: Keywords: __str__
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Part 1:
Python command line doesn´t display any data from DB when typing poll.obejct.something. It shows "[<Poll: Poll object>]". It looks that adding methods str(self) in didn´t work.
Part 2: syncdb doesn´t work. When I commented added methods(mentioned above), it worked

=> error in syntax of the methods.

Change History (3)

comment:1 Changed 13 years ago by Ondrej.Suchomel <ondrej@…>

comment:2 Changed 13 years ago by Ondrej.Suchomel <ondrej@…>

Owner: changed from Jacob to anonymous
Status: newassigned

comment:3 Changed 13 years ago by James Bennett

Resolution: worksforme
Status: assignedclosed

I'm unable to reproduce this; adding __str__ to the models as indicated in the tutorial produced the output shown in the tutorial, so this is an issue somewhere in the code you're writing as you follow along. Please post to the django-users mailing list ( with a detailed description of the problem, including the code you're using.

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