David
David

Reputation: 199

Display chart in the template

I have this code: http://pastebin.com/BVZ73NBk

I'm trying to send the graphic to the template, but this error is occurring:

TypeError at /grafico/

draw_graph() takes no arguments (1 given)

Request Method: GET Exception Type: TypeError Exception Value:

draw_graph() takes no arguments (1 given)

OBS: I use Python and Django

Can you help me? Please.

Upvotes: 0

Views: 75

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599610

If you're calling draw_graph as a view, it needs to accept the request as an argument.

Upvotes: 1

Related Questions