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
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
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
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
FieldError at /polls/
Cannot resolve keyword 'name' into field. Choices are: choice, id, pub_date,
question
Request Method:G
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
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:
>>
7 matches
Mail list logo