The django server served using nginx creates an excel file using pandas and BytesIO and then returns an HttpRespose as follows: