First things first: 1. Do you have a Model for your data? 2. Is your form a ModelForm attached to this Model?
On Jul 20, 2:14 pm, commonzenpython <commonzenpyt...@gmail.com> wrote: > VolunteerForm is the name of my form class in forms.py, i put the code > you gave me : > > if request.POST: > form = VolunteerForm(request.POST) > if form.is_valid(): > fm = form.save() > > in my views.py > > when i visit the url, i get the form , but when i submit information, > i get a 500 error, and django sends me a message that says > AttributeError: 'VolunteerForm' object has no attribute 'save' -- 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.