File tree Expand file tree Collapse file tree 3 files changed +37
-8
lines changed
Expand file tree Collapse file tree 3 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments