What is UserForm?

On 24 дек, 00:46, l5x <[EMAIL PROTECTED]> wrote:
> Traceback:
> File "/home/user/django_src/django/template/debug.py" in render_node
>   71.             result = node.render(context)
> File "/home/user/django_src/django/template/debug.py" in render
>   87.             output =
> force_unicode(self.filter_expression.resolve(context))
> File "/home/user/django_src/django/utils/encoding.py" in force_unicode
>   51.                 s = unicode(s)
> File "/home/user/django_src/django/newforms/forms.py" in __unicode__
>   69.         return self.as_table()
> File "/home/user/django_src/django/newforms/forms.py" in as_table
>   152.         return self._html_output(u'<tr><th>%(label)s</th><td>%
> (errors)s%(field)s%(help_text)s</td></tr>', u'<tr><td colspan="2">%s</
> td></tr>', '</td></tr>', u'<br />%s', False)
> File "/home/user/django_src/django/newforms/forms.py" in _html_output
>   108.         top_errors = self.non_field_errors() # Errors that
> should be displayed above all fields.
> File "/home/user/django_src/django/newforms/forms.py" in
> non_field_errors
>   168.         return self.errors.get(NON_FIELD_ERRORS,
> self.error_class())
> File "/home/user/django_src/django/newforms/forms.py" in _get_errors
>   86.             self.full_clean()
> File "/home/user/django_src/django/newforms/forms.py" in full_clean
>   183.             value = field.widget.value_from_datadict(self.data,
> self.files, self.add_prefix(name))
> File "/home/user/django_src/django/newforms/widgets.py" in
> value_from_datadict
>   65.         return data.get(name, None)
>
> views:
>
>     profile = Profile()
>     user = User()
>
>    if request.POST:
>        ... (i'm not using POST)
>    else:
>               form_user = UserForm(user)
>         form_profile = UserBasicForm(profile)
>
>     return render_to_response(
>                               'Member/register.html',
>                               {'basic_user_form': form_user,
>                                'basic_profile_form': form_profile},
> context_instance=RequestContext(request)
>                               )
>
> What do you thing about it?
> I get this using FastCGI in shared environment, Python 2.5.1, Django
> 0.97-pre-SVN-6976
--~--~---------~--~----~------------~-------~--~----~
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