how to ues render_comment_form correctly
HI, everyone.
Some questions about the render_comment_form tag and the
get_comment_form tag make me confused.
Here is my code:
#blog_detail.html
{% extends "base.html" %}
{% block content %}
<h2>{{ post.title }}</h2>
<p>{{ post.timestamp }}</p>
<p>{{ post.body }}</p>
{% load comments %}
{% render_comment_form for post %}
{% endblock %}
When I submit the form, "CSRF verification failed. Request aborted."
appears.
I have installed the comments app as the document said.
I don't write a view, because I think there is a default view to do
this.
Thank you for helping me.
yours
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home