Skip to content
Tawk.to chat for django
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tawkto
test_project
.gitignore
LICENSE
MANIFEST.in
README.md
setup.py

README.md

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' %}
You can’t perform that action at this time.