Skip to content

Commit aa00858

Browse files
committed
Initial check in
1 parent d71156d commit aa00858

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+60351
-0
lines changed

src/app.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from datetime import datetime
2+
from flask import Flask, render_template, request, redirect, url_for
3+
app = Flask(__name__)
4+
5+
6+
@app.route('/')
7+
def index():
8+
return render_template('index.html')
9+
10+
11+
@app.route('/hello', methods=['POST'])
12+
def hello():
13+
name = request.form.get('name')
14+
if name:
15+
return render_template('hello.html', name = name)
16+
else:
17+
return redirect(url_for('index'))
18+
19+
20+
if __name__ == '__main__':
21+
app.run()

src/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Flask==2.0.2

0 commit comments

Comments
 (0)