On Wed, Oct 29, 2008 at 10:38 PM, Tsinga <[EMAIL PROTECTED]> wrote: > > Hey guys, > > I am a newbie to Django, and I am having trouble. Need help! This is > the Traceback: > > Environment: > > Request Method: POST > Request URL: http://127.0.0.1:8000/register/ > Django Version: 1.0-final-SVN-unknown > Python Version: 2.5.2 > Installed Applications: > ['django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.sites', > 'django_example.example_app'] > Installed Middleware: > ('django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware') > > > Traceback: > File "C:\Python25\Lib\site-packages\django\core\handlers\base.py" in > get_response > 86. response = callback(request, *callback_args, > **callback_kwargs) > File "C:\DevCenter\Python_Project\django_example\..\django_example > \example_app\views.py" in register_page > 37. username=form.clean_data['username'], > > Exception Type: AttributeError at /register/ > Exception Value: 'RegistrationForm' object has no attribute > 'clean_data' > > Well you left out any description of what you are doing, which makes it harder to answer. What is this django_example.example_app code you are running? Possibly you are running code written for an earlier release of Django on Django 1.0, or using a book that is similarly out of date. Forms used to have a clean_data attribute, now it is cleaned_data:
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Newforms:clean_datachangedtocleaned_data Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

