On Jul 26, 4:50 pm, Matt <[EMAIL PROTECTED]> wrote:
> Hi Etienne,
>
> I read that {{ form.as_table }} was the default value for {{ form }}
> as well, but when I insert {{ form }} into my template I get something
> out which looks like the output of a __str__ method - a list of
> dictionaries and values.
>
> I'm running Python 2.5 on Ubuntu Feisty. I'll put together a test on a
> Windows box later today and see if I still have the same problems.
>
> Can you confirm that the CRUD generic views are compatible with
> newforms? I haven't seen any examples of how to do it, but I'm having
> a hard time believing that this core functionality hasn't been
> implemented (or even patched) for newforms yet.

The CRUD generic views are using oldforms AFAIK.

> Thanks,
> Matt.
>
> On Jul 26, 12:19 am, "Etienne Robillard" <[EMAIL PROTECTED]>
> wrote:
>
> > I think the default value for {{ form }} is {{ form.as_table }}, so
> > perhaps it is safe to just use the default {{ form }} within a
> > table element:
>
> > <form ...>
> > <table>
> >  {{ form }}
> > </table>
> > </form>
>
> > As for this error, it looks like the server didnt finished serving a request
> > and crashed. Maybe upgrading Python and a couple of python modules
> > should help.
>
> > Regards,
> > Etienne
>
> > On 7/25/07, Matt <[EMAIL PROTECTED]> wrote:
>
> > > Eric,
>
> > > It seems I jumped to conclusions too quickly. I'm finding that
> > > {{ form.as_table }}, {{ form.as_ul }} and {{ form.as_p }} cause the
> > > server to error. The page is still served, but the following is in the
> > > terminal where the development server is running:
>
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python2.5/site-packages/django/core/servers/
> > > basehttp.py", line 279, in run
> > >     self.finish_response()
> > >   File "/usr/lib/python2.5/site-packages/django/core/servers/
> > > basehttp.py", line 318, in finish_response
> > >     self.write(data)
> > >   File "/usr/lib/python2.5/site-packages/django/core/servers/
> > > basehttp.py", line 397, in write
> > >     self.send_headers()
> > >   File "/usr/lib/python2.5/site-packages/django/core/servers/
> > > basehttp.py", line 449, in send_headers
> > >     self.send_preamble()
> > >   File "/usr/lib/python2.5/site-packages/django/core/servers/
> > > basehttp.py", line 379, in send_preamble
> > >     'Date: %s\r\n' % (formatdate()[:26] + "GMT")
> > >   File "socket.py", line 262, in write
> > >     self.flush()
> > >   File "socket.py", line 249, in flush
> > >     self._sock.sendall(buffer)
> > > error: (32, 'Broken pipe')
>
> > > This is occurring with the SVN version of Django. Have you seen this
> > > before?
>
> > > Thanks,
> > > Matt.- Hide quoted text -
>
> > - Show quoted text -


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