On Tue, 2008-04-22 at 09:02 -0700, Explore wrote:
> Hi. I am new to django and I am trying to get a handle around the form
> processing.  I am using the svn trunk Revision: 7419 on Windows with
> the development server.  I have a views.py setup in my app that looks
> like this:
> 
>   form = TestingForm()
>   print form.as_table()
>   print form.as_table
>   return render_to_response('testing.html', { 'form':TestingForm })

You're passing in a class to the template, rather than an instance of
the form. Your need to pass the "form" variable via the dictionary, not
the TestingForm class.

Regards,
Malcolm

-- 
I just got lost in thought. It was unfamiliar territory. 
http://www.pointy-stick.com/blog/


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