Easily add Drift's chat widget to your Django apps.
To get started run pip install django-drift-chatwidget
In your settings.py
file add the following lines:
DRIFT_CHAT_WIDGET = {
'ID': 'YOUR ID'
}
Your ID
can be obtained here in the JavaScript section.
Note: The values in drift.load('YOUR ID');
represent your ID
Lastly, add drift_chatwidget
to your INSTALLED_APPS
section.
{% load drift_chat_widget %}
{% drift_chatwidget %}
You should now be able to see the chat widget on pages where the template tag is included.
If you find a bug, feel free to suggest a fix or contribute by opening up a PR.
- Lemuel Boyce rhymiz