[Django]-Django comments change success url

6👍

Just add a hidden field called next to your comment form with the value of the url you’d like to re-direct to after the form has been posted.

Example from the docs:

<input type="hidden" name="next" value="{% url my_comment_was_posted %}" />

https://docs.djangoproject.com/en/dev/ref/contrib/comments/#redirecting-after-the-comment-post

Leave a comment