Skip to content

Commit 3c167d9

Browse files
authored
corrected missing make_response import
1 parent 2955b2d commit 3c167d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • example-flask-python3.6-index/app

example-flask-python3.6-index/app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from flask import Flask, send_file
3+
from flask import Flask, send_file, make_response
44
app = Flask(__name__)
55

66
# Sample Dynamic Route
@@ -9,12 +9,12 @@ def hello():
99
return "Hello World from Flask in a uWSGI Nginx Docker container with \
1010
Python 3.6 (from the example template)"
1111

12-
# Sample Chart as Image
1312
@app.route("/")
1413
def main():
1514
index_path = os.path.join(app.static_folder, 'index.html')
1615
return send_file(index_path)
1716

17+
# Sample Chart as Image
1818
@app.route("/sample_chart.png")
1919
def simple():
2020
import datetime

0 commit comments

Comments
 (0)