Download docxtpl generated file with cherrypy
问题 I am using docxtpl to generate a word document, and wondering how a user can download this file once generated using cherrypy, please see my code below. the only solution i could come up with is to save it to the www folder and create a link to the location, but i am sure this can be simplified. code: import os, os.path import random import string import cherrypy from docxtpl import DocxTemplate import sys from auth import AuthController, require, member_of, name_is import socket reload(sys)