Added a forum website
This commit is contained in:
parent
dc6865352c
commit
f63f2f5468
10
Visual Studio Code Projects/html-forms/main.py
Normal file
10
Visual Studio Code Projects/html-forms/main.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from flask import Flask, render_template
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def home():
|
||||||
|
return render_template("index.html")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run(debug=True)
|
||||||
16
Visual Studio Code Projects/html-forms/templates/index.html
Normal file
16
Visual Studio Code Projects/html-forms/templates/index.html
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<label>Name</label>
|
||||||
|
<input type="text" placeholder="name">
|
||||||
|
<label>Password</label>
|
||||||
|
<input type="text" placeholder="password">
|
||||||
|
<button type="text">Ok</button>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user