Previous Page Next Page

Exercises

In this hour, you got a chance to use the database-abstraction API to build the index() and details() views in the iFriends application. Use the following exercises to expand the site a bit further and add views for the Blog objects:

1.Add entries to the URLconf file to handle web access to a blog_index() and blog_details() view for Blogs.
2.Create a blog_index() view that displays links to all Blog entries in the database.
3.Create a blog_details() view that displays the title and text of a single Blog entry.

Previous Page Next Page