On Oct 26, 3:08 pm, Waleria <waleriantu...@gmail.com> wrote: > I know that the execution of the function stops there, but i don't > know how do i resolve. I need to display the graphic generated and > just below the form. > > Can you help me, please? > > Thanks
Well as far as I can tell, the generated graphic doesn't depend on the request or the form at all. So why does it need to be created in the same view as the form? It seems like you just need your template to contain a normal HTML image tag, whose `src` attribute is a URL that points to the gera_grafico function (or a wrapped version that returns the FigureCanvas). -- DR. -- 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.