Re: unsupported opperand type(s)

2014-08-02 Thread Mariusz Wilk
But when I enter: p = Poll(id=1, question="What's new?", pub_date=timezone.now()) p.save() and then enter: Poll.objects.filter(question__startswith='What') it should return: [] but it returns: [, , ] ..and so other commands form the tutorial also return things completely different from wh

Re: invalid attribute

2014-08-02 Thread ngangsia akumbo
That is the error i got , i am using windows so it id diffiult at times to copy the full error On Friday, August 1, 2014 1:40:14 PM UTC+1, Collin Anderson wrote: > > all of your methods are indented too much. They should be at the same > level as `class Meta`, not part of it. > -- You receive

Re: Going throught the Django tutorial help pls

2014-08-02 Thread Collin Anderson
What does the error say? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-u

Re: unsupported opperand type(s)

2014-08-02 Thread Collin Anderson
What version of python are you using (2 or 3)? Poll.objects.all().delete() will delete all of your Poll objects, if you want. Or it may be simpler to just rm db.sqlite3 and run manage.py migrate/syncdb again. -- You received this message because you are subscribed to the Google Groups "Django

Re: Going throught the Django tutorial help pls

2014-08-02 Thread Michael Carey
FieldError at /polls/ Cannot resolve keyword 'name' into field. Choices are: choice, id, pub_date, question Request Method:G

Re: Going throught the Django tutorial help pls

2014-08-02 Thread Collin Anderson
Maybe try: Poll.objects.get(question="Test") -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, s

Re: invalid attribute

2014-08-02 Thread ngangsia akumbo
i migrated to linux everything is clear thanks On Saturday, August 2, 2014 11:22:30 AM UTC+1, ngangsia akumbo wrote: > > That is the error i got , > > i am using windows so it id diffiult at times to copy the full error > > On Friday, August 1, 2014 1:40:14 PM UTC+1, Collin Anderson wrote: >>