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.
| 1. | What is the relative path of the URLconf file for the following URL pattern?
(r'^Blogs/', include('mySite.Blogs.urls')),
|
| 2. | If a variable is captured in the URL pattern and also is specified in an extra options dictionary, which value is passed to the view function? |
| 3. | If the URL Blogs/display/10 is passed into the following URL pattern, what URL is passed into the URLconf file called by the include() function?
(r'^Blogs/', include('mySite.Blogs.urls')),
|
| 1. | mySite/Blogs/urls.py |
| 2. | The value in the dictionary |
| 3. | display/10 |