I am working with the GUI where there is a button. On button click, an ajax call happens which returns a JSON to the backend in Django's view.py. On the basis of the JSON, I am creating an excel file and the path of this file is returned to the place where ajax call happened. I want that file to download on the click of the same button.
i.e, is it possible to do all these operations (from ajax call to download the excel file) with one click of that button?
edit
Path means the physical path of file system.