https://github.com/justquick/django-mptt-comments
A restful comment system using modified preordered tree traversal ala. slashdot
https://github.com/justquick/django-mptt-comments
Last synced: about 1 year ago
JSON representation
A restful comment system using modified preordered tree traversal ala. slashdot
- Host: GitHub
- URL: https://github.com/justquick/django-mptt-comments
- Owner: justquick
- Created: 2009-07-17T15:34:11.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2010-09-01T18:20:33.000Z (almost 16 years ago)
- Last Synced: 2025-04-12T13:13:27.511Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 220 KB
- Stars: 8
- Watchers: 3
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
====================
Django Mptt Comments
====================
Django Mptt Comments is a simple way to display threaded comments instead of the django contrib comments.
Repo moved `here`__ .
__ http://bitbucket.org/fivethreeo/django-mptt-comments/
Installation
============
#. 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
#. Add the `mptt_comments` directory to your Python path.
#. Add the needed apps to `INSTALLED_APPS` ::
'django.contrib.comments',
'django.contrib.markup',
'template_utils',
'mptt',
'mptt_comments'
#. Add `mptt_comments.urls` to your projects urlconf ::
(r'^comments/', include('mptt_comments.urls')),
#. Add the required code to the objects detail page (see Usage)
#. Copy the templates to adapt them for your site
#. 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