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

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…

Contents