Previous Page Next Page

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.What function can you use to create User objects from a view function?
2.Where do you add custom permission objects?
3.In what format are passwords stored in the database?
4.How do you verify textual passwords against passwords in the database?

Quiz Answers

1.The User.objects.create_user() function.
2.Custom permissions are added to the Meta attribute of objects in the model.
3.Passwords are stored as a hash inside the database in the format hashtype$salt$hash.
4.You use the User.check_password(textual_password, db_password) function.

Previous Page Next Page