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/generic-views/#django-views- generic-create-update-create-object). If you want to do individual fields, like the example: <form action="" method="post"> <p>{{ form.name.label_tag }} {{ form.name }}</p> <p>{{ form.address.label_tag }} {{ form.address }}</p> </form> of if you wanted to have django do the whole thing for your: <form action="" method="post"> ((form)) </form> That's about as simple as it gets. Other than the above code IN YOUR TEMPLATE, you'll need to have the basic HTML <head> and <body> sections, you can find those on the web somewhere for examples. Once you have the above setup and happy, you should have what you're looking for to get started. HTH John On Nov 19, 3:57 am, maury <[EMAIL PROTECTED]> 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 message I > got) and I don't know how to write it, yet. I have no special needs, > is it possible to let django supply one default template constructed > from the model definition ? > > Thanks a lot > Maury --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---