dude, change {% url <!-- django.contrib.comments.views.comments.comment_done --> %}" /> to your own custom view like the view you used to load the page where you are collecting the comments.
Don't mean to be harsh but what were you thinking? django.contrib.comments.views.comments.comment_done by default redirects to the "Thanks for your comment" page. On 2/23/12, coded kid <duffleboi...@gmail.com> wrote: > Hi guys, how can I get rid of users being directed to the “Thanks you > for your comment” page after commenting in Django site? I users to be > redirected to the same page they commented. I’m using Django > comments. > > I’ve tried adding: > > <input type=”hidden” name=”next” value=”"{% url > django.contrib.comments.views.comments.comment_done %}" /> > > But it’s not working. Below is codes in my comment/form.html > > {% load comments %} > {% get_comment_count for sol as comment_count %} > {% get_comment_list for sol as comment_list %} > {% get_comment_form for sol as form %} > {% if user.is_authenticated %} > <form action="{% comment_form_target %}" method="post"> > {% csrf_token %} > {% if next %}<input type="hidden" name="next" value="{% url > django.contrib.comments.views.comments.comment_done %}" />{% endif %} > {% for field in form %} > {% if field.is_hidden %} > {{ field }} > {% else %} > {% if field.name != "name" and field.name != "email" > and field.name != "url" %} > {% if field.errors %}{{ field.errors }}{% endif %} > {{ field }} > {% endif %} > {% endif %} > {% endfor %} > <input class="submit-post" name="post" type="submit" value="Comment" / >> > </form> > {% else %} > I'm sorry, but you must be <a href="javascript:alert('send to > login page')">logged in</a> to submit comments. > {% endif %} > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.