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

  • Home
  • SEARCH
  • 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 6170039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:57:46+00:00 2026-05-23T22:57:46+00:00

I have a django site that servers matplotlib images generated from numbers stored in

  • 0

I have a django site that servers matplotlib images generated from numbers stored in a mysql database.

One of the views will display up to 5 images. The src value for the images do not link to static files but instead to django views that will generate png images. The images can take up to 5 seconds to load. The same django view function is not being called repeatedly. The five images correspond to different types of plotting methods, each has its own function in django view.

When multiple requests for the images are sent, the server freezes up. I am developing the site with xampp. I cannot load the site in another tab, or any of the php sites I have running on the same server.

If I try to load all the images with the initial page load the server freezes. If I load the page then request the images separately using jquery/ajax (and wait patiently) then there is no problem. If I quickly make two ajax requests then the server freezes.

Can anyone explain what might be the source of the problem?

Can I force the serialized execution of the requests on the server?

Can I use javascript to delay each request until the prior image is returned (and not just when the link is update as is currently the case)?

Or can I put a time limit on the requests to kill these hang ups on the server?

Thanks. It would be a big help if someone could help me resolve this.

  • 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-23T22:57:47+00:00Added an answer on May 23, 2026 at 10:57 pm

    You could use a two stage process to generate these pages:

    • On the initial request, push the image generation tasks into a queuing system such as celery. Use a separate process to execute these tasks, and tune it to run as many as your system will cope with in parallel.
    • On the client side, use ajax to poll the server to determine when the image generation tasks are complete, and finalise the display.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a django server that serves the basic site with user, auth etc
I have an application that uses Django 1.3 installed in python's site-packages. I want
I've been developing a web-site that uses Django and MySQL; what I want to
I've been developing a Django site that uses django-social-auth ( this one ) for
I currently have multiple Django sites running from one Apache server through WSGI and
I have a django site using the basic django registration framework. I have my
I currently have a django site, and it's kind of slow, so I want
I have a similar question than django cross-site reverse . But i think I
I have enabled site-wide Django caching , but the third-party apps I am using
I have a site running in django and want to make it available on

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.