O'Reilly logo

Python Web Development with Django® by Wesley Chun, Jeff Forcier, Paul Bissex

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. URLs, HTTP Mechanisms, and Views

In the previous chapter, you learned how to define the data models which form the underpinnings of most Web applications; in the chapter following this one, we show you how to display those models with Django’s template language and forms. However, by themselves those two aspects of a Web framework don’t do much; you need controller logic deciding what data to render which template with and URL dispatching to determine what logic is performed for a given URL.

This chapter details how Django implements the HTTP request-response architecture introduced in Chapter 3, “Starting Out,” followed by an explanation of the simple Python functions that form controller logic, as well as some built-in helper functions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required