Hi OP,
Just as a side note, it's probably worth learning about how Python works
before jumping straight into Django. (I'm assuming this based on __unicode__
did not have proper indentation).
My apologies if I am wrong though!
Cal
On Thu, Jun 30, 2011 at 3:19 PM, Jarilyn Hernandez wrote:
> Tha
Thanks for your responses. The problem was solved.
Best Regards,
Eiram
On Thu, Jun 30, 2011 at 10:06 AM, Jirka Vejrazka
wrote:
> > class Poll(models.Model):
> >question = models.CharField(max_length=200)
> >pub_date = models.DateTimeField('date published')
> > def __unicode__(self):
> >
> class Poll(models.Model):
> question = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
> def __unicode__(self):
> return self.question
>
> class Choice(models.Model):
> poll = models.ForeignKey(Poll)
> choice = models.CharField(max_length=20
Op donderdag 30 juni 2011 14:57:46 UTC+1 schreef Eiram het volgende:
>
> Greetings!!
>
> In the past few days I have been trying to learn about Django. I
> started doing the Tutorial 1. During the tutorial I'm getting a
> strange error. I was hoping if someone can help me to understand what
>
On Thu, 2011-06-30 at 06:57 -0700, Eiram wrote:
> Poll(objetcs.all)
Poll.objects.all()
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Greetings!!
In the past few days I have been trying to learn about Django. I
started doing the Tutorial 1. During the tutorial I'm getting a
strange error. I was hoping if someone can help me to understand what
I'm doing wrong and how can I fix it.
This is the code I had:
class Poll(models.Mode
6 matches
Mail list logo