Friday, September 24, 2010

Re: Since Django 1.2.3, I can't display any Form

2010/9/24 François Bonnefont <happypoulp@gmail.com>
I am new to this group and not sure how to present my problem
correctly...

I was working with django 1.1 and made a very small and simple
application with a "ContactForm" not related to any model.

My forms.py :

from django import forms

class ContactForm(forms.Form):
   firstname = forms.CharField(max_length=50)
   lastname = forms.CharField(max_length=50)


Recently I updated to Django 1.2.3 and since then I get :

"AttributeError: 'CharField' object has no attribute 'prepare_value'"
when I try to print this form (or any other form).

It sounds like your 1.2.3 update did not entirely work. Specifically the error seems to imply you are running with a 1.2.3 level of the django/forms/forms.py file but some earlier level of django/forms/fields.py. I'd delete the current Django installation and re-install 1.2.3 from scratch.

Karen
--
http://tracey.org/kmt/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment