clean repo

This commit is contained in:
2025-04-27 20:01:50 +04:00
parent 925a8ffa97
commit 41dcd86ab5
4 changed files with 0 additions and 45 deletions

View File

@@ -1,18 +0,0 @@
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/")
def home():
return render_template("index.html")
@app.route("/greet", methods=["POST"])
def greet():
username = request.form["username"]
return f"Привет, {username}!"
if __name__ == "__main__":
app.run(debug=True)

View File

@@ -1,9 +1 @@
blinker==1.9.0
click==8.1.8
colorama==0.4.6
Flask==3.1.0
itsdangerous==2.2.0
Jinja2==3.1.6
MarkupSafe==3.0.2
numpy==2.2.5
Werkzeug==3.1.3

View File

@@ -1,5 +0,0 @@
<form action="/greet" method="post">
<label>Введите имя:</label>
<input type="text" name="username">
<button type="submit">Отправить</button>
</form>

View File

@@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Главная</title>
</head>
<body>
<h1>Привет, Flask!</h1>
<p>Добро пожаловать на мой сайт.</p>
</body>
</html>