Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6951031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:10:03+00:00 2026-05-27T14:10:03+00:00

I have a django view which uses a template to display a long queryset

  • 0

I have a django view which uses a template to display a long queryset (> 800 items). It takes several seconds for the view to render, and when it’s done rendering the entire page, it sends it to the browser. Instead, I want the Template to render as an iterator, so that it can transmit the page line by line (and so I can see the page appear in my browser) as it is generated. I don’t want to wait several seconds before I see anything.

Right now my view returns render_to_response('view_name.html', {items:myitems}).

Is rendering a template to an iterator as I’ve described possible in Django?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:10:03+00:00Added an answer on May 27, 2026 at 2:10 pm

    Not via templates, no.

    You can treat an HttpResponse as an iterator, yielding your output line-by-line, but template rendering is an all-in-one process (as it has to be, because of the need to resolve blocks etc).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Django project. Given a url, how can I know which view
I have a Django 'add business' view which adds a new business with an
I have Django project on Dreamhost server which has several views that returns Json
I have a Django view that receives POSTs which do not need to have
I have a Django view which returns an HttpResponse with a special MIME type
I have a Django view, which receives part of its data from an external
I have a Django website as follows: site has several views each view has
I have a page which uses jQuery for some AJAX-stuff und Django as main
I have a ModelForm in my Django app that uses a forms.ModelMultipleChoiceField, which displays
I have a Django form which I'm validating in a normal Django view. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.