title: Using templatetag "get_comment_list" from view, in Django comments?
body: <p>I have a template expression <code>{% get_comment_list for data.post as comment_list %}</code>, it uses <code>get_comment_list</code> from Django-comments. It gets a list of comment objects for a specified object (in this case the Post object through data.post)</p>
  <p>However, I'm currently working on client side Ajax API to retrieve the comments and its related user data. So I cannot use the template html way to get/render the data, but in a view, Python script.</p>
  <p>I found that the tag <code>get_comment_list</code> is defined as follows:</p>
  <pre><code># django_comments/templatetags/comments.py
  
  @register.tag
  def get_comment_list(parser, token):
      return CommentListNode.handle_token(parser, token)
  </code></pre>
  <p>I know how to import custom template tag to a view so Python can use it, like:</p>
  <pre><code>@register.simple_tag
  def addFoo(value=&quot;&quot;):
      return value + &quot;Foo.&quot;
  </code></pre>
  <p>The above type of tag is simply passing a string value, but the <code>get_comment_list(parser, token)</code> tag requires two parser thing and object thing object, it's not a plain string type.</p>
  <p>Now, I have no idea how I can construct that <code>parser</code> and <code>token</code> or pass a model to <code>get_comment_list</code> to get the comment objects. Is it possible to use this type of template tag in a view? Thanks.</p>