[Answer]-Writing urlpattern in django for rendering an image

1👍

So you just want another url mapping? It wouldn’t be very different from the one you already have. e.g.:

urlpatterns = patterns("myapp.views",
    url(r'^$', 'index',dict(template_name = 'myapp/index.html'), name = 'home'),
    url(r'^kick-ass-chart/$', 'render_chart', name='myapp_render_chart'),
)

Leave a comment