I will tell you what, You are just awesome :) Thanks a million. I was
so worried :)
As you told i tried all the way and only then posted. I ll take care
of indentation from now on :)
Thanks again.
On Feb 20, 5:20 pm, akaariai wrote:
> Check the indentation of __unicode__ method (and other methods
did u try this by any chance?? I found the way out, but it doesn
return what i want.
When is give Poll.objects.all() it is equivalent to SELECT * from
Poll; and for me it returns
in your case, poll is an object ryt? now wer is the attribute?
print [e.question for e in Poll.objects.all()] = SELEC
Check the indentation of __unicode__ method (and other methods too)...
- Anssi
On Feb 20, 1:50 pm, kalyani ram wrote:
> hey all,
>
> I am learning the db connectivity using this
> tutorialhttps://docs.djangoproject.com/en/dev/intro/tutorial01/
> Now, i followed every single step and yet, when
I'm as well new to django/python but did you tried
for poll in Polls.objects.all():
print poll
?
Thanks!
On Feb 20, 12:50 pm, kalyani ram wrote:
> hey all,
>
> I am learning the db connectivity using this
> tutorialhttps://docs.djangoproject.com/en/dev/intro/tutorial01/
> Now, i followed e
hey all,
I am learning the db connectivity using this tutorial
https://docs.djangoproject.com/en/dev/intro/tutorial01/
Now, i followed every single step and yet, when i give
Polls.objects.all() is gives the output as
But then it should be returning the fields right? I checked the db
also. I has r
5 matches
Mail list logo