Course Content

  • Routers

Course Content

FAQs

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)

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere