In this chapter, you have learnt 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, and you also learned how to derive templates from a base template, which is very important in organizing the site's structure and reusing template code.
Here is a summary of the Django features covered in this chapter:
The
User
object of the current user is accessible from therequest.user
attribute of theHttpRequest
object passed to the view.Because loading a template, rendering it and wrapping it in an
HttpResponse
object is such a common task, Django provides a shortcut for it calledrender_to_response
. This function...