Skip to main content

A reusable Django app that provides threaded conversations between users.

Project description

A reusable Django app that provides threaded conversations between users.

Installation

To get the latest stable release from PyPi

$ pip install django-conversation

To get the latest commit from GitHub

$ pip install -e git+git://github.com/bitmazk/django-conversation.git#egg=conversation

TODO: Describe further installation steps (edit / remove the examples below):

Add conversation to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'conversation',
)

Add the conversation URLs to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^conversation/', include('conversation.urls')),
)

Don’t forget to migrate your database

./manage.py migrate conversation

Usage

The conversations in this app are threaded, that means a conversation is related to one object. In this case the object is a user. So if user1 starts a conversation with user2 all messages between those users are stored in one conversation (you know it, if your are e.g. a Facebook user).

This app allows another relation, so you can also add a content object to a conversation between two users. Let’s say you built a sports app. user1 wants to talk with user2 about a fight called Klitschko vs. Tyson. They can now start a conversation, which is also related to that fight. But, they can also start a new conversation about other fights or talk to each other without another relation, for sure.

If you have executed the tasks written above, the app is ready to work. Note: The templates are based on Twitter Bootstrap (http://getbootstrap.com/). If you don’t use it, simply overwrite them.

In almost every case you want to customize stuff, add jQuery/JavaScript, add CSS, your own templates and so on, so this app is kept very simple.

Settings

CONVERSATION_MESSAGE_FORM

Default: None

If you want to use your own message form, you can define it here:

CONVERSATION_MESSAGE_FORM = 'my_app.forms.MyMessageForm'

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 django-conversation
$ python setup.py install
$ pip install -r dev_requirements.txt

$ git co -b feature_branch master
# Implement your feature and tests
$ git add . && git commit
$ git push -u origin feature_branch
# Send us a pull request for your feature branch

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-conversation-1.3.5.tar.gz (15.9 kB view details)

Uploaded Source

File details

Details for the file django-conversation-1.3.5.tar.gz.

File metadata

File hashes

Hashes for django-conversation-1.3.5.tar.gz
Algorithm Hash digest
SHA256 9517c91e251f5e73b639a283cd52da7ed8e46c04e42aaf1f5e6a615080978f3e
MD5 ee2d59c414cb09d4fa2f3c573757798a
BLAKE2b-256 a9085730acdbab09b312c2c34a21d5543a1fa4d7440c0e81bff3bbd064467693

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page