:)
Keep going maiyte but don't burnt out.
On Fri, Feb 24, 2012 at 4:24 AM, coded kid <[email protected]> wrote:
> Thanks man! I've changed it to {{request.path}}.
>
> Not thinking bout anything. Just might be tired then!
>
> On Feb 23, 4:30 pm, Babatunde Akinyanmi <[email protected]> wrote:
> > 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 <[email protected]> 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 [email protected].
> > > 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> 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.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.