Skip to main content

Easily add Drift's chat widget to your Django apps.

Project description

# Drift Chat Widget
Easily add Drift's chat widget to your Django apps.


## Getting Started
To get started run `pip install django-drift-chatwidget`


### Settings
In your `settings.py` file add the following lines:

```
DRIFT_CHAT_WIDGET = {
'ID': '[YOUR ID]',
'SNIPPET_VERSION': '[SNIPPET VERSION]'
}
```

Your `ID` and `SNIPPET_VERSION` can be obtained [here](https://app.drift.com/settings/widget) in the **JavaScript** section.
*Note: The values in `drift.load('YOUR ID');` represent your `ID`*

Lastly, add `drift_chatwidget` to your `INSTALLED_APPS` section.


### Templates
```
{% load drift_chat_widget %}
{% chatwidget %}
```

You should now be able to see the chat widget on pages where the template tag is included.

### Bugs
If you find a bug, feel free to suggest a fix or contribute by opening up a PR.


### Contributors
- Lemuel Boyce [rhymiz](https://github.com/rhymiz)

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-drift-chatwidget, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-drift-chatwidget-0.1.0.tar.gz (2.8 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 NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page