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 20. Internationalization and Localization

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

How to localize strings in Python code

</objective>
<objective>

How to localize strings in templates

</objective>
<objective>

How to create language files

</objective>
<objective>

Where to set language preference

</objective>
<objective>

How to enable languages at the session level

</objective>
</feature>

Django provides full support for internationalization by allowing you to define localized strings in your Python code and template files. Using localized strings allows you to build a website that can be displayed in several different languages.

Internationalizing your website is a three-step process. First, you define which strings should ...

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