2.3 Building Hello World

In Chapter 1, Section 1.2, we discussed how every website was originally a collection of webpages, each identified by a URL. Each webpage is thus two things: the data that the webpage contains and gives back to the user and the URL that identifies the webpage.

Django uses this construction to its advantage and splits the theoretical Controller into two parts. To build a webpage, we first need to define what data the webpage returns and then define the URL for the webpage.

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.