Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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):
```bash
pip install django-tawkto
```

Add `tawkto` to your INSTALLED_APPS setting like this:

```python
INSTALLED_APPS = [
...
'tawkto',
]
```

Add `TAWKTO_ID_SITE` in settings.py:

```python
TAWKTO_ID_SITE='<tawkto id site>'
```

(Optional) Add `TAWKTO_API_KEY`:

```python
TAWKTO_API_KEY='<tawkto api key>'
```

(Optional) For secure site (requires `TAWKTO_API_KEY`):

```python
TAWKTO_IS_SECURE=True
```

In HTML:

```djangotemplate
{% load tawkto_tags %}

<!DOCTYPE html>
<html lang="en">
<head>
...
</head>
<body>
...
{% tawkto_script %}
</body>
</html>
```

6. Add visitor `name` and `email`:

```djangotemplate
{% tawkto_script user_name=request.user.get_full_name user_email=request.user.email %}
```

7. Use a different widget for a given property:

```djangotemplate
{% tawkto_script widget_id='somewidgetid' %}
```



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.2
Filename, size File type Python version Upload date Hashes
Filename, size django_tawkto-0.2-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-tawkto-0.2.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page