In my quest to learn Django, I've encountered yet another problem.
I tried to automaticly generate a form using the newforms model. It didn't
work.Django outputted en error, that the model object didn't have the
attributre EmailField. The I tried copy pasting the example form the django
documentation . I've got the sam result.

This the (documentation code):

from django.newforms import *

class mail_form_creator(forms.Form):
        subject = forms.CharField(max_length=100)
        message = forms.CharField()
        sender = forms.EmailField()
        cc_myself = forms.BooleanField()

-- note I've put this class in my views.py right after all the includes,
maybe thats the problem

This is the error I got:

ViewDoesNotExist at /mail/ Tried mail in module cms.editor.views. Error was:
'module' object has no attribute 'CharField' Request Method: GET  Request
URL: http://localhost:8000/mail/  Exception Type: ViewDoesNotExist  Exception
Value: Tried mail in module cms.editor.views. Error was: 'module' object has
no attribute 'CharField'  Exception Location:
c:\python25\lib\site-packages\django\core\urlresolvers.py
in _get_callback, line 129
I'm not sure what to do. I run Django 0.96.



-- 
Please visit this site and play my RPG!

http://www.1km1kt.net/rpg/Marinci.php

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to