completed code for the Django tutorial