Reputation: 1115
In my view I generate 5 images (they are generated by pyplot.)
Everything seems to work fine. The files are generated correctly in the right directory.
But the browser only shows one of the five images, and the requests for the other 4 usually timeout. Looking at the django server output, the GET requests will often take five minutes to finish.
These images are ~100kb, and are present and correct on the drive immediately after being generated.
Am I missing a call for Django to update the new static files? Something else? Please help!
Upvotes: 0
Views: 687
Reputation: 61
I also faced a similar problem but with audio files. To resolve that issue I used pagination and that solved my issue. I think you should try that, like view one image in one page and second image on second page.
Upvotes: 0
Reputation: 127
Deal with them as a media file, save the files to your media server (CDN or local), then send the URL of the images to the browser to load them.
Upvotes: 1