Problem 1
Blog: Start a new Django project called Blog. Create an app called blogs in the project, with a model called Blogrost. The model should have fields like title, text, and date_added. Create a superuser for the project, and use the admin site to make a couple of short posts. Make a home page that shows all posts in chronological order. Create a form for making new posts and another for editing existing posts. Fill in your forms to make sure they work.
Problem 3
Refactoring: There are two places in views.py where we make sure the user associated with a topic matches the currently logged-in user. Put the code for this check in a function called check_topic_owner (), and call this function where appropriate.