Boston Python Workshop/Saturday/Web app project: Difference between revisions

Line 604:
=== Raising 404 ===
 
Now, let's tackle the poll detail view -- the page that displays the question for a given poll. Continue editing the ''views.py''. file. This view uses Python ''exceptions'':
 
from django.http import Http404
Anonymous user