Previous Page Next Page

Exercises

1.Add a radio button to the login template labeled Show Quotes.
2.Add supporting code to the login_user() function to check the value of the radio button, and set a session variable with the user's preference.
3.Add code to the details() view function to add the session variable to the dictionary passed to the template.
4.Add code to the template to check the variable to determine whether the quote.html template should be loaded.

Previous Page Next Page