Version 1 (modified by tlp, 9 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())

Back to Top