-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Django 1.0 Website Development

This chapter covered a variety of interesting topics. We learned about several Django frameworks that are useful when deploying Django. We also learned how to move a Django project from development to a production environment. Notably, the frameworks that we learned about are all very easy to use, so you will be able to effectively utilize them in your future projects.
Here is a quick summary of the Django features explained in this chapter:
To mark a string for translation, use the ugettext
or ugettext_lazy
functions in views, models, and forms, and the trans
and blocktrans
template tags in templates.
To create and compile a language file, use the makemessages
and compilemessages
subcommands of python manage.py
.
You can globally change the language of the site by creating a configuration variable named LANGUAGE_CODE
in the settings.py
file, or per user by enabling the LocaleMiddleware
class and the setlanguage
view.
The caching system allows you to speed up your web site during heavy...
Change the font size
Change margin width
Change background colour