The url for() function is used to dynamically create a URL to a certain function. This function is useful in that it allows us to dynamically construct URLs rather than hard-coding them into the templates.
The endpoint in Flask is not named after the module. It just defaults to the name of the function. The endpoint name is determined (unless you define one explicitly) and stored with the route registration when you register a view (with the @app. route() decorator).
Use flask. request. args. get() to get parameters from a URL
@app. route("/")
def hello():
return request. args. get("page_number")
app. run(host="0.0.0.0", port=8080)
Learner's Ratings
4.6
Overall Rating
87%
0%
4%
4%
5%
Reviews
P
Priyesh Singh
5
Tutors are just outstanding specially Rupal mam, thank u so much for these valuable content.
PATIL KUNAL SUNILBHAI
5
Fabulous learning experience
A
AMAN KUMAR
5
Very nice teaching.
S
Samiul Basir
5
She is best instructor I've ever learned.
S
Sujit babu
5
GREAT TEACHER ❤❤❤❤❤❤❤😍😍😍😍😘😘😘💕💕💕💕
R
Rajnish Kumar
5
ma'am this session is very well ma'am please prove Django
9
90videos Challenge5
5
Very good teching Thank You mam
A
Aditya Singh
5
Great learning experience, can we get the slides used in the lecture ?
Share a personalized message with your friends.