Re: Query s in django 1.7

2014-10-03 Thread dk
yes,that did the trick, odd that on .all does work fine, i wish the error was more descriptive. On Friday, October 3, 2014 7:52:40 AM UTC-5, Collin Anderson wrote: > > You need to call django.setup(). > > I can confirm, though, that using Model.objects.all() somehow sometimes > seems to work wi

Re: Query s in django 1.7

2014-10-03 Thread Collin Anderson
You need to call django.setup(). I can confirm, though, that using Model.objects.all() somehow sometimes seems to work without calling django.setup(). -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Query s in django 1.7

2014-10-03 Thread dk
*i am trying to query base on the id of the table and i get a big error, when i do it using .all() i can get the objects* *>>> Restaurant.objects.all()* [, , , ] this works for looping and getting the information such for i in Restaurant.objects.all(): print i.id print i.name 1 angr