score:0

Accepted answer

you should use the view some_view in your url pattern, not the class linechart.

url(r'^polls/bubble/$', views.some_view, name='bubble'),

also, check that the indentation for some_view is correct. it might just be a mistake in your question instead of your actual code, but you currently have some_view as a method of the linechart class. it should be:

class linechart(chart):
    chart_type = 'line'
    responsive = false
    ...

def some_view(request):
    render(request, 'polls/chart.html', {
    'line_chart': linechart(),
})

Related Query

More Query from same tag