get_object_or_404 Tutorial part 3

2011-04-13 Thread darekodz
I've very strange error in part 3. I want to test using function get_object_or_404. I've 3 polls, so in that adress: http://localhost:8000/polls/1/ http://localhost:8000/polls/2/ http://localhost:8000/polls/3/ everything is OK. In that adress: http://localhost:8000/polls/4/ Should be exeptions 404.

Re: __unicode__ in tutorial part 1

2011-04-12 Thread darekodz
It works!! THANK YOU EVERYBODY On 12 Kwi, 22:21, Rafael Durán Castañeda wrote: > I think last line from traceback is enough: > > IndentationError: unexpected indent > > 2011/4/12 darekodz > > > > > > > > > I'm using instant django which have

__unicode__ in tutorial part 1

2011-04-12 Thread darekodz
I'm using instant django which have: Python 2.7.1 and Django 1.2.4. When I add def __unicode__(self): return self.question and def __unicode__(self): return self.choice to my class I have errors when I want to restart shell, like: C:\django\mysite>python manage.py syncd