Opened 17 years ago

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

Description

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 models.py didn´t work.
Part 2:
manage.py syncdb doesn´t work. When I commented added methods(mentioned above), it worked

=> error in syntax of the methods.

Change History (3)

comment:1 by Ondrej.Suchomel <ondrej@…>, 17 years ago

comment:2 by Ondrej.Suchomel <ondrej@…>, 17 years ago

Owner: changed from Jacob to anonymous
Status: newassigned

comment:3 by James Bennett, 17 years ago

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 (http://groups.google.com/group/django-users/) with a detailed description of the problem, including the code you're using.

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