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' %}
```
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.
Source Distribution
django-tawkto-0.2.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file django-tawkto-0.2.tar.gz
.
File metadata
- Download URL: django-tawkto-0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cdd36e3c6d26f0eda66d7bade69c1ff998c6390c54beeb8da06113eb64503b6 |
|
MD5 | e7e11296290e4eb2bc67f49eb80280fc |
|
BLAKE2b-256 | 153b8c87c788affaa081b924d4f86ae960c76f940b2c5454a74a52e5de1a1956 |
File details
Details for the file django_tawkto-0.2-py3-none-any.whl
.
File metadata
- Download URL: django_tawkto-0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b128576f1b6d45c0559778cc11d295fde6ab08831671d659e83ecddf62b48d |
|
MD5 | e98bf8a9bdbb555eedb2fd6cd09efc86 |
|
BLAKE2b-256 | 941464dbde03d4117e4ffb2479cf1de89d8368f16690541e86f81acf11e4c64e |