O'Reilly logo

Sams Teach Yourself Django in 24 Hours by Brad Dayley

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 6. Configuring Web Page Views

<feature><title>What You’ll Learn in This Hour</title> <objective>

How to pass extra options to a view function

</objective>
<objective>

How to implement view prefixes

</objective>
<objective>

How to create URLconf files for each application

</objective>
<objective>

How to use a callable object instead of a string in an URL pattern

</objective>
</feature>

In Hour 4, “Creating the Initial Views,” you learned how to set up the initial views in the URLconf file. In this hour, we will expand on that topic to include more advanced configuration options for views. When designing your website, the more complete your URLconf file configuration for web page views is, the easier it is to keep your code in the view cohesive and ...

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