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

Django 1.0 Website Development

In this chapter, you learned a lot about the user authentication and management system that comes with Django. This system provides features ranging from session handling to account maintenance. You used this system to allow the users of our social bookmarking application to register on the site and authenticate themselves by logging in. In the process, you learned about the Django form library and utilized it to build a registration form with input validation. You also learned how to derive templates from a base template, which is very important in organizing the site's structure and reusing the template code.
Here is a summary of the Django features covered in this chapter:
The User
object of the current user is accessible from the request.user
attribute of the HttpRequest
object passed to the view.
As loading a template, rendering it, and wrapping it in an HttpResponse
object is such a common task, Django provides a shortcut for it called render_to_response
. This function is available...
Change the font size
Change margin width
Change background colour