On 02/13/2012 11:44 AM:
Yeah, thanks for the reply. I followed the doc but it's not working
for me.
[...]

Hi there!

If you have an object my_object passed by your view to your template, I
think you can write:

{% load comments %}
{% get_comment_count for my_object as comment_count %}
{% get_comment_list for my_object as comment_list %}
{% get_comment_form for my_object as form %}

and then you can:

<form action="{% comment_form_target %}" method="post">
  {% csrf_token %}
  {{ form }}
  <tr>
    <td colspan="2">
      <input type="submit" name="submit" value="Post">
      <input type="submit" name="preview" value="Preview">
    </td>
  </tr>
</form>

Let me know it that's of any help. In case, write me what kind of error
you get. Also, I can pass you my source code so you can have an example.

Cheers, Fabio.

--
Fabio Natali

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

Reply via email to