Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Generate image and send to template [RSS Feed]

#1 June 23, 2010 20:22:00

W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate image and send to template


Hi all,

I need generate a image and send to template, but I'm not
getting ...see my codehttp://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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 June 24, 2010 08:16:45

e.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate image and send to template


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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 20th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support