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 type of field would you use to add a long textual description to a model?
2.What type of field would you use to add a relationship between a person and an address class where more than one person can live at that address?
3.What file should you change to activate a model in the admin interface?

Quiz Answers

1.TextField
2.ForeignKey
3.That application's models.py file

Previous Page Next Page