Hello, world

   1 
   2 from django.http import HttpResponse
   3 
   4 def hello(request):
   5     html="""<html>
   6     <body>
   7     <h1>Hello, world</h1>
   8     </body>
   9     </html>
  10     """
  11     return(HttpResponse(html))
views.py

   1     (r'^hello/$', views.hello)

   1 import views

Celý projekt máte tu: hello.tar.gz

ProgramovanieInternetovychAplikacii/HelloWorld (last edited 2009-02-26 10:01:43 by GejzaJenca)