Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Add Facebook chat (Tawea) to a template with a simple tag.

Project description

# django-tawea

Add Facebook chat ([Tawea][1]) to a template with a simple tag.


{% tawea color='#CC2700' %}

## Installation

Using `pip`:

$ pip install django-tawea

Or cloning the project from github:

$ git clone git@javimb/django-tawea.git
$ cd django-tawea
$ pip install -r requirements.txt

## Usage

Add `tawea` to `INSTALLED_APPS`:

INSTALLED_APPS = (
...
'tawea',
...)

Load and use the provided `tawea` tag in the template:

{% load tawea %}
{% tawea [color=<hex_color>] %}

Django-tawea provides all the JavaScript stuff for Tawea's chat, so put the `tawea` tag at the end of the template.

### Optional args

- **color:** The hex color used in the chat. #3b5998 by default.

##Example

{% load tawea %}

{% block js %}
{% tawea color='#CC2700' %}
{% endblock js %}


[1]: https://tawea.com/

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Files for django-tawea, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-tawea-0.1.linux-x86_64.exe (67.3 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size django-tawea-0.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page