> test 1<br/>
> <table>
> {{ form.as_table }}
> </table>
>
> nothing prints out (maybe because it is trying to print the object
> instead of calling the method?)
this is correct. It should work, but to diagnose you should post the
full template and the full view
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/code/
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/