Version 1 (modified by tlp, 18 years ago) ( diff )

--

Some example code

from django import newforms as forms 

class UserForm(forms.Form):
    firstname = forms.CharField(max_length=50)
    lastname = forms.CharField(max_length=50)
    email = forms.EmailField()    
    password1 = forms.CharField(widget=forms.PasswordInput())
    password2 = forms.CharField(widget=forms.PasswordInput())

Note: See TracWiki for help on using the wiki.
Back to Top