Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 19 additions and 0 deletions.
  1. +13 −0 main.py
  2. +6 −0 views.py
View
13 main.py
@@ -0,0 +1,13 @@
+from flask import Flask
+import views
+
+app = Flask(__name__)
+
+"""
+URL Settings
+"""
+app.add_url_rule('/', 'index', view_func = views.index)
+
+if __name__ == '__main__':
+ app.run(port=50000)
+
View
6 views.py
@@ -0,0 +1,6 @@
+import logging as log
+log.basicConfig(level=log.DEBUG)
+
+def index():
+ log.info("Index function called.")
+ return "Hello world."

No commit comments for this range

Something went wrong with that request. Please try again.