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 7. Implementing Django Templates to Create Custom Views

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

How to configure the template directory for a project

</objective>
<objective>

How to create templates in the Django shell

</objective>
<objective>

How to render views using templates

</objective>
<objective>

How to extend templates

</objective>
<objective>

How to embed templates in other templates

</objective>
</feature>

So far, all the examples of web pages that you have created in your views have been hard-coded by Python code that generates an HTML web page. This has worked well because the web pages that you have created have been basic.

As you create more advanced web pages, you will want to begin using the Django template ...

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