Back to Examples Run this application locally to try examples

examples/hello.py

from py4web import action

from .common import T


@action("hello")
@action.uses(T)
def hello():
    return str(T("Hello World"))