Commit b8998a84 authored by D.H.D. Nguyen's avatar D.H.D. Nguyen
Browse files

another way of running the simplest version of app.py

parent 1f6548d5
Loading
Loading
Loading
Loading

flask_test/hello.py

0 → 100644
+11 −0
Changes for flask_test/hello.py: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
from flask import Flask
app = Flask(__name__)

@app.route('/')
def main():
    return 'Hello, World!'

# this has the same function like 2 commands in console from app.py, just RUN python hello.py !!!
if __name__ == '__main__':
	app.run()
########################
 No newline at end of file