django form && url

#添加新数据

>>> f = ContactForm({subject': Hello, email: adrian@example.com, message: Nice site!})

#查看元素
>>> f.cleaned_data

{message': uNice site!, email: uadrian@example.com, subject: uHello}

urlconf
    urlpatterns += patterns('',
(r'^debuginfo/$', views.debug),
)

posted @ 2009-12-22 13:29  kid的笔记本  阅读(180)  评论(0编辑  收藏  举报