neebone <[EMAIL PROTECTED]> writes:

> Just to update, I'm getting the form to post to a different url which
> handles the logic of creating the comment then redirects back to the
> article page on success. All good. My only problem is what to do if
> the form contains missing fields - I need to get back to the article
> page and re-populate the form with the entered information _plus_
> error messages (field required etc).

You are probably to the point of where you need to be writing your own
view rather than using generic views and trying to handle things in
the template tags.  It is probably best for you to just let the
article page handle form submissions, so it can handle the errors as
well.

-- 
+-----------------------------------------------------------+
| Jason F. McBrayer                    [EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada    |

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to