From the course: Skill Up with Python: Hands-On Web Development Projects

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Create supporting server endpoints

Create supporting server endpoints

- All right, so at this point we've seen how to create a few different templates and basically serve those to the client whenever the correct type of request is received by the server. At this point, our server is only serving files, right? So, really this is very similar to just a basic HTML server that sends files back to the user, or to the client that is. But the interesting thing is that we can actually have endpoints like what we've created here, right? Endpoints whose sole purpose is to send back some sort of HTML data. We can have those co-exist inside the same server with endpoints that are more similar to what we've seen in previous projects, right? Endpoints that actually deal with some sort of data and make some sort of difference in our application. So, what we're going to take a look at here is we're actually going to modify our app slightly so that it will consist of two main pages. The first page is going to be a page that has a simple form on it that just asks the…

Contents