As far as I know it's for the life the the queryset variable. So if you create a queryset at module level, it lasts until the module is reloaded. If you define a queryset in one of your views it will hit the database everytime that view function is accessed.
QS1=Model.objects.all() def view(request): qs2=Model.objects.all() return render_to _response('tmpl.html',{'old': QS1, 'new': qs2}) At the first request, both querysets will print the same thing. If you update the database and hit the view, they should show different results. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---