Anonymous user
Boston Python Workshop/Saturday/Web app project: Difference between revisions
Boston Python Workshop/Saturday/Web app project (view source)
Revision as of 22:08, 5 March 2011
, 13 years ago→Finally: Write your first view
Line 518:
return HttpResponse("Hello, world. You're at the poll index.")
This is the simplest view possible.
Now lets 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):
|