Create Your First Page

In this section we will focus on the steps necessary to make a a specific HTML page load when a user goes to any URL in your website. For instance, after this section you will be able to make 127.0.0.1:8000/ open up your own homepage and not the django default page. In addition, we'll learn how to make any URL, like 127.0.0.1:8000/dog, open a specific HTML page that we created.

As a general overview, here is how our server handles requests whenever a client browser requests a webpage from our website:

In the "URL Patterns" section, we will talk about how to tell the server what to do on different URL paths that are requested.

In the "Views" section, we will talk about how to actually tell the server what HTML to serve to the user based on what URL they requested.

In the "HTML Templates" section, we will talk about where the HTML goes and how django manages HTML.

results matching ""

    No results matching ""