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 4. Creating the Initial Views

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

How to configure the initial URLconf file

</objective>
<objective>

How to handle HTTP requests

</objective>
<objective>

How to display web pages using the HttpResponse object

</objective>
<objective>

How to configure URL patterns to enable a view

</objective>
<objective>

How to add URL-based arguments to a view

</objective>
</feature>

This hour shows you how to create and configure the initial views for your projects. Django requires some initial configuration to enable views. As soon as views are enabled through the URLconf file, they are simple to use and powerful.

This hour also shows you how to handle HTTP requests and send HTTP responses directly ...

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