Workshop
The workshop consists of a set of questions and answers designed to solidify your understanding of the material covered in this hour. Try answering the questions before looking at the answers.
Quiz
1. | Which function verifies that a username and password match a User object in the database? |
2. | Which function adds the User object to the current session? |
3. | Which variable do you use inside a template to access user permissions? |
4. | What type of context object must be added to the render_to_response() call to allow you to access authentication and permission information? |
Quiz Answers
1. | The django.contrib.auth.authenticate() function |
2. | The django.contrib.auth.login() function |
3. | The perms variable |
4. | A RequestContext object |