Solution
@app.route('/data_transcript', methods=['GET', 'POST'])
def data_transcript():
"""string for html template"""
# to do some stuff
return render_template('index.html', doc_string=data_transcript.__doc__)
@app.route('/data_transcript', methods=['GET', 'POST'])
def data_transcript():
"""string for html template"""
# to do some stuff
return render_template('index.html', doc_string=data_transcript.__doc__)