On Tuesday 20 July 2010 12:17:23 commonzenpython wrote: > hey guys, im trying to make a volunteer form which has several fields, > like name, address, and other types of information about the > volunteer, and i was wondering how i can make a form that saves the > user input in the database (MySQL) , so far i now i have to create a > forms.py file in the same directory where my views.py is, and then use > it through views.py, but dont know how to save it to the database, so > that it can be retrieved later on >
something like this: if request.POST: form = Reportform(request.POST) if form.is_valid(): fm = form.save() -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.