We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2955b2d commit 3c167d9Copy full SHA for 3c167d9
1 file changed
example-flask-python3.6-index/app/main.py
@@ -1,6 +1,6 @@
1
import os
2
3
-from flask import Flask, send_file
+from flask import Flask, send_file, make_response
4
app = Flask(__name__)
5
6
# Sample Dynamic Route
@@ -9,12 +9,12 @@ def hello():
9
return "Hello World from Flask in a uWSGI Nginx Docker container with \
10
Python 3.6 (from the example template)"
11
12
-# Sample Chart as Image
13
@app.route("/")
14
def main():
15
index_path = os.path.join(app.static_folder, 'index.html')
16
return send_file(index_path)
17
+# Sample Chart as Image
18
@app.route("/sample_chart.png")
19
def simple():
20
import datetime
0 commit comments