Trying to get the example from
http://docs.djangoproject.com/en/dev/topics/forms/
to work. I copied and pasted:
from django import forms
class ContactForm(forms.Form):
subject = forms.CharField(max_length=100)
message = forms.CharField()
sender = forms.EmailField()
cc_myself = forms.BooleanField(required=False)
but get this error everytime:
ViewDoesNotExist at /
Tried main in module myapp.main.views. Error was: 'module' object has
no attribute 'Form'
any ideas? thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---