Re: {{ form.as_table }} not displaying in template

2009-12-13 Thread Mark Schuuring
Oh and I am not familiar with Ajax I am sorry because I've been told that's a way to handle it... Regards 2009/12/13 Mark Schuuring : > Hey guys thanks for your respond.  First of all i read the tutorial > and the form works in /search with the template and the view.

Re: {{ form.as_table }} not displaying in template

2009-12-13 Thread Mark Schuuring
Hey guys thanks for your respond. First of all i read the tutorial and the form works in /search with the template and the view. For now I am trying to achieve a searchfield in another folder, /blog. Are you guys saying i have to copy/ repeat the form in the /blog view and template? To be as DRY

Re: {{ form.as_table }} not displaying in template

2009-12-13 Thread oliver
Sounds like you are not creating the form in your view .. read the tutorial the part about creating a form .. you need the form class, and the view that process your form (a) creates an empty form b) process the submitted one) see this relative simple example of a login form .. class

Re: {{ form.as_table }} not displaying in template

2009-12-12 Thread Brian Neal
On Dec 12, 5:04 pm, GoSantoni wrote: > Hey i've got a very basic question about django form processing. Got > haystack installed and searching works fine in the standard search > template (http://haystacksearch.org/docs/tutorial.html#search- > template) in the /search .

{{ form.as_table }} not displaying in template

2009-12-12 Thread GoSantoni
Hey i've got a very basic question about django form processing. Got haystack installed and searching works fine in the standard search template (http://haystacksearch.org/docs/tutorial.html#search- template) in the /search . Though i want to use the search box defined by {{ form.as_table }} in

Re: form.as_table not displaying in template

2008-04-22 Thread Explore
Thank you all for your quick responses. I was passing the class instead of the instance. Everything is working great now! On Apr 22, 12:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-04-22 at 09:02 -0700, Explore wrote: > > Hi. I am new to django and I am trying to get a

Re: form.as_table not displaying in template

2008-04-22 Thread Explore
Karan and Malcolm, Thank you both - that was the problem. It is working great now! On Apr 22, 12:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > 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

Re: form.as_table not displaying in template

2008-04-22 Thread Malcolm Tredinnick
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 =

Re: form.as_table not displaying in template

2008-04-22 Thread Karen Tracey
On Tue, Apr 22, 2008 at 12:02 PM, Explore <[EMAIL PROTECTED]> 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

Re: form.as_table not displaying in template

2008-04-22 Thread Kenneth Gonsalves
On 22-Apr-08, at 9:32 PM, Explore wrote: > test 1 > > {{ form.as_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

form.as_table not displaying in template

2008-04-22 Thread Explore
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