I can't understand the comments in your code, but it looks like some graph generating software.
I think the problem you're having is that the first function returns a HttpResponse half way through (line 53), but then there is some further processing which will never be accessed. The second function expects some data by calling the first which never seems to return it in the correct form for further manipulation and so that's why it's not working. I'd be quite concerned about writing to a file from a web app on your disk. If you want to store the data somewhere temporarily, I'd consider either a temporary file or pickling the data in a database. On 23 June, 20:21, Waleria <waleriantu...@gmail.com> wrote: > Hi all, > > I need generate a image and send to template, but I'm not > getting ...see my code > > http://paste.pocoo.org/show/OtwMsOEhe8c9b7jF0elw/ > > I'm not getting to understand the > > def generate_graph (request): -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.