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

Line 520:
This is the simplest view possible. Save the views.py file, then go to "/polls/" in your browser, and you should see your text.
 
Now letslet's add a few more views. These views are slightly different, because they take an argument (which, remember, is passed in from whatever was captured by the regular expression in the URLconf):
 
def detail(request, poll_id):
Anonymous user