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

Line 531:
return HttpResponse("You're voting on poll %s." % poll_id)
 
TakeSave the views.py file. Now take a look in your browser, at "/polls/34/". It'll run the detail() method and display whatever ID you provide in the URL. Try "/polls/34/results/" and "/polls/34/vote/" too -- these will display the placeholder results and voting pages.
 
=== Write views that actually do something ===
Anonymous user