From the course: Full Stack Web Development with Flask
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Working with the GET method - Flask Tutorial
From the course: Full Stack Web Development with Flask
Working with the GET method
- [Instructor] Working with the GET method. In this video, we're going to take a look at creating the enrollment form using the GET method, creating the enrollment template, creating the enrollment route or the URL pattern, and we're going to show you how to access form data using GET method. So let's go into the ID and see how this is done. Now let's look at the HTTP methods and this is a little bit tricky in Flask because, usually, the POST and the GET and other methods are available by default by many other programming languages. But, in Flask, you have to allow that wave function to use it. So let's go back to the code here. I realized that this image has not shown up for some reason on the Classes page, I have to fix that a little bit. Okay, so back in the code here, all right, so let's go and, to make this work, I think we're just going to modify the Courses template and we will say: use a form to enroll the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Creating the base template8m 28s
-
(Locked)
Creating child templates6m 54s
-
(Locked)
Passing data to the view10m 27s
-
(Locked)
Accessing data via request and response objects1m 37s
-
(Locked)
URL variables6m 34s
-
(Locked)
Working with the GET method9m 46s
-
(Locked)
Working with the POST method3m 2s
-
(Locked)
Sending a JSON response8m 1s
-
-
-
-