summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergii2015-01-25 15:53:45 -0500
committerSergii2015-01-25 15:53:45 -0500
commit1a40da34cefbdaef896808c9444304ad91abe693 (patch)
tree161915884ae2df016fa054eac1abe16df8919324
downloadedu-net-1a40da34cefbdaef896808c9444304ad91abe693.tar.bz2
hello world page on Flask serverHEADmastermakingItWork
-rw-r--r--test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..aa84685
--- /dev/null
+++ b/test.py
@@ -0,0 +1,10 @@
+from flask import Flask
+app = Flask(__name__)
+
+#for the slash rout run this function
+@app.route("/")
+def hello():
+ return "Hello World!"
+
+if __name__ == "__main__":
+ app.run()