Skip to main content

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.

Source Distribution

django-tawea-0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django-tawea-0.1.linux-x86_64.exe (67.3 kB view details)

Uploaded Source

File details

Details for the file django-tawea-0.1.tar.gz.

File metadata

  • Download URL: django-tawea-0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-tawea-0.1.tar.gz
Algorithm Hash digest
SHA256 6743cee9f612862506a13c35f8559ed327bf42c65db5b19f69dd9f11615ac777
MD5 879f32237789ec3779e08ae1cd17385b
BLAKE2b-256 a1c517307e411faad74c1e176abe3294274f1ae310fd81059c4ef1346b35eb69

See more details on using hashes here.

File details

Details for the file django-tawea-0.1.linux-x86_64.exe.

File metadata

File hashes

Hashes for django-tawea-0.1.linux-x86_64.exe
Algorithm Hash digest
SHA256 edc2533949779f152237158109c0d6673aa6f0c7ae1af7967bd82046738ab7fb
MD5 b7ad9e6b90fbebdd0bca841b10ede255
BLAKE2b-256 ca19c9bde40f06aae9eb9f0432dd0ea090450d84adfeb625e209f270b4c8009d

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