Version 1 (modified by cmlenz, 16 years ago) (diff) |
---|
Request Handlers
A 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.
@output('index.html') def index(request, response): return render(message='Hello, world!')