Look at any website and you'll see that never is the picture somehow
"embedded" in the page, it's linked by an img tag that points at the
url of the image.
What he was saying is that you need two separate views. In the first,
return your page with an img tag pointing at the other view that
returns the img.
On Oct 26, 5:16 pm, Waleria <waleriantu...@gmail.com> wrote:
> I don't understand what you said.
>
> Thanks
>
> On 26 out, 12:19, Daniel Roseman <dan...@roseman.org.uk> wrote:
>
> > 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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment