Re: Using generic view to insert a simple model in the DB

2008-11-20 Thread John M
django writes about 90% of the form part for you. This was also an area for me (being new to HTML apps) that was confusing. You have two choices, you can use the {{form}} object in your html, or you can setup each field from the form individually. (http://docs.djangoproject.com/en/dev/ref/generi

Re: Using generic view to insert a simple model in the DB

2008-11-19 Thread Steve Holden
maury wrote: > Updates: > > I found some documentation and I added a code to urls.py like this : > > (r'^poll/add$', create_update.create_object, {'model' : Poll}), > > and the problem is that I have to write a template (I know where the > file should be and how it should be named from the error m

Re: Using generic view to insert a simple model in the DB

2008-11-19 Thread maury
Updates: I found some documentation and I added a code to urls.py like this : (r'^poll/add$', create_update.create_object, {'model' : Poll}), and the problem is that I have to write a template (I know where the file should be and how it should be named from the error message I got) and I don't

Using generic view to insert a simple model in the DB

2008-11-19 Thread maury
Hi everyone. I'm new to Django and I followed the tutorial to understand its basic mechanisms. I really like it :-) I have to let the user insert records in the DB by a web-form. I described the datum with a simple model and I want to use a generic view to collect all the attributes from the user