Getting started with Django roadmap — Part 2
In the previous part of this blog, I shared insight into how to get started with Django and the key things to focus on. This is a continuation of the blog post The first part can be found here: Getting started with Django roadmap — Part 1
5b. How to make your page come alive
Continuing from the previous post, it is necessary to reiterate that you mainly need at least two of the three django component to create an active page.
1. views.py
2. urls.py
3. html file (optional)
In your views.py, you need to create the function to handle all the http requests. You can either use the Class Based View option or the Function Based View option. For simplicity, I’ll use the FBV option in the example below.
Once you have completed your views function, you will then need to map it to your urls.py so that you can generate a route for it so it can be accessible to the browser.