@app.route('/where/to/serve/files/<path:filename>')
def download_file(filename):
    if os.path.exists(DIRECTORY_TO_SERVE_PATH + filename):
        return send_from_directory(DIRECTORY_TO_SERVE_PATH, filename,
            as_attachment=True)
Flask : How to serve static files from template directory?