Skip to main content

A simple Django app to integrates with https://www.tawk.to/ chat.

Project description

django-tawkto

django-tawkto is a simple Django app to it integrates with https://www.tawk.to/ chat.

Quick start

Install the stable release from pypi (using pip):

pip install django-tawkto

Add tawkto to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
    ...
    'tawkto',
]

Add TAWKTO_ID_SITE in settings.py:

TAWKTO_ID_SITE='<tawkto id site>'

(Optional) Add TAWKTO_API_KEY:

TAWKTO_API_KEY='<tawkto api key>'

(Optional) For secure site (requires TAWKTO_API_KEY):

TAWKTO_IS_SECURE=True

In HTML:

{% load tawkto_tags %}

<!DOCTYPE html>
<html lang="en">
<head>
    ...
</head>
<body>
    ...
    {% tawkto_script %}
</body>
</html>
  1. Add visitor name and email:
{% tawkto_script user_name=request.user.get_full_name user_email=request.user.email %}
  1. Use a different widget for a given property:
{% tawkto_script widget_id='somewidgetid' %}
  1. Use a different tawkto property:
{% tawkto_script id_site='tawktosideit' api_key='tawktoapikey'%}

Project details


Download files

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

Files for django-tawkto, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size django_tawkto-0.3-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-tawkto-0.3.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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