From 0bba7247cd941f1f52388da88c236ad0a5bd1df0 Mon Sep 17 00:00:00 2001 From: alex danamir Date: Mon, 14 Dec 2020 00:24:13 +0300 Subject: [PATCH] connected to flask --- app.py | 13 ++++++++ app_config.py | 11 ------- templates/index.html | 78 ++++++++++++++++++++++---------------------- 3 files changed, 52 insertions(+), 50 deletions(-) diff --git a/app.py b/app.py index e69de29..b5694c5 100644 --- a/app.py +++ b/app.py @@ -0,0 +1,13 @@ +from flask import Flask, render_template + + +app = Flask(__name__) + +@app.route('/') +def index(): + return render_template('index.html') + + +if __name__ == "__main__": + app.jinja_env.auto_reload = True + app.run(debug=True) \ No newline at end of file diff --git a/app_config.py b/app_config.py index 9cf0078..e69de29 100644 --- a/app_config.py +++ b/app_config.py @@ -1,11 +0,0 @@ -from flask import Flask - - -app = Flask(__name__) - - - - -if __name__ == "__main__": - app.jinja_env.auto_reload = True - app.run(debug=True) \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 1038371..c2a63fd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,8 +10,8 @@ - - + + Author @@ -19,7 +19,7 @@