Django Module

23 views
Skip to first unread message

justquick

unread,
Apr 13, 2008, 1:39:54 PM4/13/08
to GChartWrapper
OK. The updated Django module is up in SVN as I write and it can do
variable resolution for any tag in the templates. I also added an
example chartproject to get people started. Please post any follow ups
here. Hope it works as well as I think it does!

justquick

unread,
Apr 13, 2008, 1:43:37 PM4/13/08
to GChartWrapper
Here is an example of template usage. This is adapted from the
GChartWrapper.charts.templates.chart template and there are many more
examples there

In views.py:

def chart(request):
return render_to_response('charts/chart.html',{
'mydataset':
'GurMrabsClgubaolGvzCrgrefOrnhgvshyvforggregunahtyl',
'mycolor': '00ff00',
})


In chart.html:

{% chart lc mydataset %}

{% title 'The Zen of Python' mycolor 36 %}

{% color 00cc00 %}

{% endchart %}
Reply all
Reply to author
Forward
0 new messages