Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A modern, ajax-based appearance for django.contrib.comments
Python CSS HTML JavaScript
tree: f0442ee7d0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
fluent_comments
.gitignore
AUTHORS
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

Introduction

The django-fluent-comments module enhances the default appearance of the django.contrib.comments application to be directly usable in web sites.

The application is designed to be plug&play. It leverages django-crispy-forms to handle the form layout.

Installation

First install the module, preferably in a virtual environment:

git clone https://github.com/edoburu/django-fluent-comments.git
cd django-fluent-comments
pip install .

Configuration

To use comments, the following settings are required:

INSTALLED_APPS += (
    'fluent_contents',
    'crispy_forms',
    'django.contrib.comments',
)

Optionally, django-threadedcomments can be included:

INSTALLED_APPS += (
    'threadedcomments',
)

COMMENTS_APP = 'threadedcomments'

Add the following in urls.py:

urlpatterns += patterns('',
    url(r'^blog/comments/', include('fluent_comments.urls')),
)

Provide a template that displays the comments for the object:

{% load comments %}

{% render_comment_list for object %}
{% render_comment_form for object %}

The database can be created afterwards:

./manage.py syncdb
./manage.py runserver
Something went wrong with that request. Please try again.