In a django app, i need to show the result of a search, and let the user downloading a csv file of the result.
Actually i just wrote a view that take the form args to make the query via the ORM and present the result in a Table in the template.
here the end of the view:
return render_to_response(template, {'form': form, 'object_list': object_list}, context_instance=RequestContext(request))
I would like to add a link below the Table that download the csv file of the result presented. I know how to make a csv file in python/django but not how to present it in the same time than a result in the template.
Any idea?? Thanks by advance for any answer.