Re: How to handle non-uploaded dynamic images ?

2020-05-12 Thread Ryan Nowakowski
On Fri, May 08, 2020 at 06:47:22PM -0700, Dorian LE NET wrote: > Let's say I have a django app where users can display images by choosing > among infinite parameters through a form. These images do not exist before > the user generate them as they are built accordingly to its selection of > para

How to handle non-uploaded dynamic images ?

2020-05-08 Thread Dorian LE NET
Let's say I have a django app where users can display images by choosing among infinite parameters through a form. These images do not exist before the user generate them as they are built accordingly to its selection of parameters. Such images are dynamically and internally generated. Then they

Re: Linking to multiple dynamic images from same web page

2015-01-19 Thread Derek
Thanks Mitesh I thought it might be along those lines. I have tried calling plt.close() just before I return from the plot creation function, but still get the same error. Do you perhaps have a simple code example I can try and follow? (I am already using the io module for the image storage.

Re: Linking to multiple dynamic images from same web page

2015-01-18 Thread Mitesh Patel
Hi Derek, I face same issue few months ago, what I did is I destroyed plot object completely everytime the view is called and regenerated new plot everytime. You can try that. There is an issue with matplotlib memory, which basically usage same plot. Another solution could be try different cStrin

Linking to multiple dynamic images from same web page

2015-01-18 Thread Derek
I have a situation which is puzzling. I have a web page that, when generated embeds links that look like: http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF1Wu3OfN9rmUKTDO%2BT%3DJan%3DF%3DLKODqQObds-tvME%3DUhL

Re: Dynamic images

2008-09-17 Thread Kenneth Gonsalves
On Wednesday 17 Sep 2008 5:01:45 pm TKa wrote: > Because I need input from the Django models for the image I want to > call the drawing function from the view. I guess I could save the > image file to temporary folder and then link the image tag to that > file in Response but is there any better w

Re: Dynamic images

2008-09-17 Thread TKa
Thank you for both of you for the fast reply. I'm still a Django newbie and I didn't know that the HttpResponse has these features. I suppose I need to study the HttpResponse documentation more carefully now. I will just need the basic web-formats so I think I will get things work with these advic

Re: Dynamic images

2008-09-17 Thread Daniel Roseman
On Sep 17, 12:31 pm, TKa <[EMAIL PROTECTED]> wrote: > Can anybody help me how to create dynamic images within Django? > Drawing the image with Python is not a problem but how to link the > created image to the httpResponse? > > Because I need input from the Django models fo

Re: Dynamic images

2008-09-17 Thread Fredrik Lundh
Jarek Zgoda wrote: > You can just return the content (bytes) in HttpResponse with > appropriate content-type header. First argument to HttpResponse > constructor is the content. if you're using PIL to create the image, you can (usually) save the image to the response object, e.g. resp

Re: Dynamic images

2008-09-17 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-09-17, o godz. 13:31, przez TKa: > Can anybody help me how to create dynamic images within Django? > Drawing the image with Python is not a problem but how to link the > created image to the httpResponse? > > Because I need input from the Django

Dynamic images

2008-09-17 Thread TKa
Can anybody help me how to create dynamic images within Django? Drawing the image with Python is not a problem but how to link the created image to the httpResponse? Because I need input from the Django models for the image I want to call the drawing function from the view. I guess I could save