close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Initial Version and Version 1 of RequestHandlers


Ignore:
Timestamp:
Jun 25, 2008, 12:08:53 PM (16 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RequestHandlers

    v1 v1  
     1= Request Handlers =
     2
     3A request handler is a neutral name for what some other frameworks call “controllers” or “views”. It is simply a Python function that accepts the request and response objects as parameters, and returns a response.
     4
     5{{{
     6#!python
     7@output('index.html')
     8def index(request, response):
     9    return render(message='Hello, world!')
     10}}}