Mercurial > kraina_muminkow
view prezentacja-django-flask/hello_werkzeug.py @ 30:50708627f3c7
Ukończona strona klienta
author | mild@mild-laptop |
---|---|
date | Sun, 05 Jun 2011 23:10:18 +0200 |
parents | f73176cba39b |
children |
line wrap: on
line source
from werkzeug.wrappers import Request, Response # Przyklad skopiowany ze strony glownej projektu Werkzeug # http://werkzeug.pocoo.org/ @Request.application def application(request): return Response('Witaj Swiecie!') if __name__ == '__main__': from werkzeug.serving import run_simple run_simple('localhost', 4000, application)