On Tue, Nov 4, 2008 at 10:19 AM, 为爱而生 <[EMAIL PROTECTED]> wrote:
> Environment:
> [snipped]
>
> File "C:\Python25\Lib\site-packages\django\forms\forms.py" in full_clean
> 227. value = getattr(self, 'clean_%s' % name)()
> File "D:\django\django_bookmarks\bookmarks\forms.py" in clean_username
> 26. username=self.clean_data['username']
>
> Exception Type: AttributeError at /register/
> Exception Value: 'RegistrationForm' object has no attribute 'clean_data'

You are apparently trying to use code written for an older version of Django
on a newer version of Django.  clean_data was renamed to cleaned_data quite
a while ago:

http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Newforms:clean_datachangedtocleaned_data

Assuming you want to use a 1.0 level of Django, you either need to get a
version of the code you are running that has been updated to work with
Django 1.0, or you will need to migrate it yourself (in which case you may
need to do more beyond adjusting to this change, see the porting guide and
list of Backward Incopmatible changes pointed to above).

Karen

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to