Don Arbow wrote: > > list_1 = Shows.objects.filter(upcoming=True) > list_2 = Shows.objects.filter(past=True) > > return render_to_response('template.html' > {'upcoming_shows':list_1, 'past_shows':list_2}) > > Don
Don, Thanks for the clean, clear example! It helped me see a way out in a variation of the same situation, i.e., a loader.get_template('template.html').render(Context({'upcoming_shows':list_1, 'past_shows':list_2})) situation. I'm using the Django templates & API in a "outside-of-Django" Python script to create and send an e-mail document. {%minor_nit%}In your render_to_response example, oughtn't there be a comma after 'template.html'?{% end minor_nit %} Thanks again! John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---