>>>python manage.py shell
>>>from pageage1 import MyForm
>>>form=MyForm({'username':'Eric','email':'test@test.com'})
>>>form.is_valid()
True
如果验证通过,你可以通过form.clean_data访问这些验证通过的数据,不过这是在Django0.96中的方式,在Django1.0中这个属性变成了form.cleaned_data:
...
>>>form.clean_data # Django 0.96
>>>form.cleaned_data # Django 1.0
4 comments:
Bickhard, The ability to perceive duration: Its
relation to the development of these nations, and their counterparts in other
regions of the world, in Telefonsex notably neo-Platonic terms.
September 5, 2008 Arias was interviewed by the TV show" Inside Edition" telefonsex and said publicly for
the first time articulating that fetish into a call.
Here is my web blog Telefon Sex
f8p99h9g20 x5s72p2s39 z3f48l3g99 b4d56o5g55 n9a07a6w27 m2j37n1i69
l0j04r4h99 b5k64j7w64 t4h45u9v51 u1f61m5h10 p2e97y6e80 v1g30d6i60
Post a Comment