On Aug 22, 2015 3:10 AM, "James Schneider" <[email protected]> wrote: > > >>>> 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. >
Sorry, it's late, it probably redirects to the same page, assuming that this view serves the /stats/ URL. Also, the spacing for your code blocks didn't come through so it's hard to tell whether or not you are handling things correctly, or at least on my phone it doesn'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 [email protected]. To post to this group, send email to [email protected]. 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%2BciU7fmymTxXSxicUdS6saU_iwf83%2B_CE_3iYpaz-9YFvjQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

