Skip to content

A restful comment system using modified preordered tree traversal ala. slashdot - this fork, designed to work with authenticated comments only, tries to add some useful features that big sites might need

liberation/django-mptt-comments

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Django Mptt Comments

Django Mptt Comments is a simple way to display threaded comments instead of the django contrib comments.

Repo moved here .

Installation

  1. Get the required third party modules :

    svn checkout http://django-mptt.googlecode.com/svn/trunk/mptt
    
    svn checkout http://django-template-utils.googlecode.com/svn/trunk/template_utils
  2. Add the mptt_comments directory to your Python path.
  3. Add the needed apps to INSTALLED_APPS :

    'django.contrib.comments',
    'django.contrib.markup',
    'template_utils',
    'mptt',
    'mptt_comments'
  4. Add mptt_comments.urls to your projects urlconf :

    (r'^comments/', include('mptt_comments.urls')),
  5. Add the required code to the objects detail page (see Usage)
  6. Copy the templates to adapt them for your site
  7. Style the forms using css

Usage

In any detail template that wants to use mptt_comments :

{% block extrahead %}

{% load mptt_comments_tags %}
{% get_mptt_comments_media %}

{% endblock extrahead %}

To display the toplevel tree in templates: :

{% load mptt_comments_tags %}    

{% display_comment_toplevel_for object %}

TODO

  • Make the more link work without javascript

About

A restful comment system using modified preordered tree traversal ala. slashdot - this fork, designed to work with authenticated comments only, tries to add some useful features that big sites might need

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.1%
  • JavaScript 16.9%