Hi Chris,

Once you've defined a model for your data, you can use a ModelForm [1] to
automatically generate a form for that model.

You might also want to check out the admin site [2], which displays data
in a tabular format similar to what you describe.

1. https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
2. https://docs.djangoproject.com/en/dev/ref/contrib/admin/

Brett


On 10/5/11 9:44 AM, "Chris G" <c...@isbd.net> wrote:

>I want to create a simple data entry form on a web page that shows all
>the columns of a database across the page (there aren't many columns,
>they will fit!) and a number of rows down the page.
>
>I.e. I want a data entry form that looks like MS Access 'tabular'
>format, as follows:-
>
>    Col1Row1    Col2Row1        Col3Row1        Col4Row1        Col5Row1
>    Col1Row2    Col2Row2        Col3Row2        Col4Row2        Col5Row2
>    Col1Row3    Col2Row3        Col3Row3        Col4Row3        Col5Row3
>    Col1Row4    Col2Row4        Col3Row4        Col4Row4        Col5Row4
>    Col1Row5    Col2Row5        Col3Row5        Col4Row5        Col5Row5
>    Col1Row6    Col2Row6        Col3Row6        Col4Row6        Col5Row6
>    New Data    New Data        New Data        New Data        New Data
>
>
>Can django do this easily in a 'ready made' sort of way or do I have to
>actually create the form and all its fields?
>
>-- 
>Chris Green
>
>-- 
>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
>django-users+unsubscr...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to