>>>> Hi, I'm a beginner using Django, and I'm having trouble using model
forms to create instances of my model.
>>>> When a user submits a form, the database saves nothing.  Here's my
code for the view
>>>>

So what exactly does happen? Based on the code you provided, you would
either end up on the same page with a blank form (in the event of errors),
or you would be redirected back to another page.

Can you validate that your instance.save() call it's actually firing? Have
you overridden the save() method in either your form or your model? Try
debugging or sprinkling in some print() functions and see whether or not
you can trace your way through your code to figure out what is working and
what isn't.

-James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVOtDB%3Ds0yg5ws3TeVXijYd72X%2B6_0%2BOacnOtaP4o%3DfUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to