Re: combining unrelated tables

2008-07-01 Thread Shane McNamee
when i try doing that i get a really weird error, but i was doing it like "render_to_response('Template.html', {'first_qs': Model1.objects.all()}, {'second_qs':Model2.objects.all()})", with the {} around each one, so hopefully i just had wrong syntax. ill try it like u said. thanks for the help -S

Re: combining unrelated tables

2008-07-01 Thread Richard Dahl
Not sure exactly where you are going, but what do you mean by ' Inside views.py it only lets me send 1 queryset to the template' why can't you do something like: render_to_response('Template.html', {'first_qs': Model1.objects.all(), 'second_qs':Model2.objects.all()}) -richard On 7/1/08, Shane

combining unrelated tables

2008-07-01 Thread Shane_McNamee
hey, i searched around this forum and found a lot of questions similar to this, but i couldnt find an answer to my question. I need to send data to my templates that comes from multiple tables in my database. Inside views.py it only lets me send 1 queryset to the template, so i figured the only w