⇤ ← Revision 1 as of 2009-02-24 12:35:47
Size: 392
Comment:
|
Size: 394
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
{attachment:views.py} | {{attachment:views.py}} |
Hello, world
Vytvorím nový projekt, urobím syncdb
V adresári projektu vytvorím modul views.py:
V súbore urls.py pridám do urlpatterns d
vojicu
1 (r'^hello/$', views.hello)
Môžem spustiť server cez ./manage.py runserver
V browseri môžem ísť na http://localhost:8000/hello