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>
- Add visitor
name
andemail
:
{% tawkto_script user_name=request.user.get_full_name user_email=request.user.email %}
- Use a different widget for a given property:
{% tawkto_script widget_id='somewidgetid' %}
- 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.
Source Distribution
django-tawkto-0.3.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for django_tawkto-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b447f9efd17eb6b57291236cd5d8c9306d0618e1d4097600febb9b026fb39e19 |
|
MD5 | ec27ec161840acddfaa97e0f39e04ce8 |
|
BLAKE2b-256 | b1c2a4e9fcd926fbe0e8569c001b83a4abff2af40458f7ddc62cd089e536451b |