{% extends "base.html" %} {% load i18n %} {% block header %}{{ block.super }}Homepage{% endblock %} {% block content %}

{% trans "This demo site using django-comments-xtd features" %}:

  1. {% blocktrans %}A Blog App with two models: Story and Quote, each of which accepts comments up to a maximum threading level of 3{% endblocktrans %}
  2. {% blocktrans %}A Projects App with two models: Project and Release. Only the Release model has comments. And comments can be nested up to a maximum level of 1.{% endblocktrans %}
  3. {% blocktrans %}Settings for comment thread levels establish a default maximum thread level for comments posted to every app in the project, and then define a specific maximum for the app.model projects.release{% endblocktrans %}:
    	COMMENTS_XTD_MAX_THREAD_LEVEL = 3
    	COMMENTS_XTD_MAX_THREAD_LEVEL_BY_APP_MODEL = {'projects.release': 1}
          
  4. {% blocktrans %}It uses the template tag render_markup_comment to render comments content. So you can use line breaks, markdown or reStructuredText to format comments{% endblocktrans %}. To use special formatting, start the comment with the line: #!<markup-lang> being <markup-lang> any of the following:
  5. {% trans "Comments allow follow up notifications." %}
  6. {% trans "Comments have to be confirmed by email (unless COMMENTS_XTD_CONFIRM_EMAIL is set to False)." %}
  7. {% blocktrans %}Unlike the two simple demo sites, several models in this demo receive comments. So it uses two new templatetag, get_xtdcomment_count andrender_last_xtdcomments, to count and produce a feed of comments posted to blog models{% endblocktrans %}:
    	{% get_xtdcomment_count as comment_count for blog.story blog.quote %}
    	{% render_last_xtdcomments 5 for blog.story blog.quote %}
          

{% trans "Visit the Blog" %}
{% trans "Visit the Projects page" %}

django-comments-xtd

{% endblock %}