Skip to main content

Django Conversation

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',
    'django_libs',
)

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

Please add the following files to your base.html

<link rel="stylesheet" href="{% static "conversation/css/conversation.css" %}">
<script src="{% static "conversation/js/conversation.js" %}"></script>

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'

CONVERSATION_ENABLE_DIGEST

Default: True

You can enable digests of unread messages by running ./manage.py send_message_digest.

If you want to disable the digest you can set the setting to False.

CONVERSATION_ENABLE_DIGEST = False

CONVERSATION_ENABLE_NOTIFICATIONS

Default: True

You can enable instant email notification, which are sent each time a new message has arrived.

If you want to disable notifications you can set the setting to False.

CONVERSATION_ENABLE_NOTIFICATIONS = False

User specific notification settings

You can also disable notifications for single users by adding an attribute to your user model. Name it disable_conversation_notifications.

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
make develop

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

In order to run the tests, simply execute tox. This will install two new environments (for Django 1.8 and Django 1.9) and run the tests against both environments.

Metadata

Release files for khoneko-conversation 1.4.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for khoneko-conversation 1.4.10
File Size Uploaded Provenance Actions
khoneko-conversation-1.4.10.tar.gz 19.7 kB Without provenance Details for khoneko-conversation-1.4.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for khoneko-conversation 1.4.10
File Interpreter ABI Platform Actions
khoneko_conversation-1.4.10-py3-none-any.whl Python 3 none any Details for khoneko_conversation-1.4.10-py3-none-any.whl

Total release size: 48.9 kB

Release files / khoneko-conversation-1.4.10.tar.gz

Download URL khoneko-conversation-1.4.10.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
75b7b416ec890f14454c3c92a44283b84d66b4d0d4f81aa4972708b75975dec7
BLAKE2b-256 checksum
How to use checksums
01cc3619652c92ac2c64e98784479809496e6de2cf8b3f548ea376d6c5a35430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / khoneko_conversation-1.4.10-py3-none-any.whl

Download URL khoneko_conversation-1.4.10-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9db2c5ecaf8df777331d352ccd595068876f45e630c23a8fd4ee04f57a20130
BLAKE2b-256 checksum
How to use checksums
1b247278ed3e824f32b8ba22dbb7f058805492bd6e7b9299a3a2b0a0a0a361ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for khoneko-conversation 1.4.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.4.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page