In Python, I used class-based views
Or CBV
There are also function-based views
And in urls.py, I dynamically map those paths to the appropriate views
But static pages
Although they are less complex
They still tend to load faster