Skip to content

Commit cbbd764

Browse files
committed
Flask Started
1 parent 48a1490 commit cbbd764

File tree

3 files changed

+37
-8
lines changed

3 files changed

+37
-8
lines changed

02.Flask/00.intro.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from flask import Flask
2+
#flask is the library
3+
#Flask is the function
4+
5+
app = Flask(__name__)
6+
#build the flask app
7+
8+
@app.route("/")
9+
#tells the url - nothing means everything
10+
def hello():
11+
return "Hello World!"
12+
13+
@app.route("/page2")
14+
#/ ke baad url pe ye run hoga
15+
def page2():
16+
return "you are in the second page"
17+
18+
app.run(debug=True)
19+
#To start the app app.run()
20+
#debug=True refresh the app everytime you make change no need to manual refresh

02.Flask/templates/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
5+
6+
<head>
7+
<title>Page ka title</title>
8+
</head>
9+
10+
<body>
11+
</body>
12+
13+
14+
</html>

TODO.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
# 🛠️ TODO: Python Notes – Task List
1+
# TODO
22

3-
## 📁 Folder Restructuring
4-
- [ ] Create `git/` folder
5-
- [ ] Move `setup_ssh.md` and `git_commands.md` from `assets/` to `git/`
6-
7-
## 📘 Git Notes
8-
- [ ] Ensure `setup_ssh.md` has clear instructions for GitHub SSH setup
9-
- [ ] Ensure `git_commands.md` lists common Git commands with brief explanations
3+
- [ ] Add Flask notes to the repository
4+
- [ ] Build a website from the repository

0 commit comments

Comments
 (0)