Wagtail admin ↔ Intercom integration
Add an Intercom widget to your Wagtail admin.
Installing
Install using pip:
$ pip install wagailadminintercom
Add it to your INSTALLED_APPS before wagtail.wagtailadmin:
INSTALLED_APPS = [
# ...
'wagailadminintercom',
'wagtail.wagtailadmin',
# ...
]
Configuring
Add WAGTAILADMIN_INTERCOM_APP_ID and WAGTAILADMIN_INTERCOM_SECRET_KEY settings to your settings file:
WAGTAILADMIN_INTERCOM_APP_ID = 'abc123'
WAGTAILADMIN_INTERCOM_SECRET_KEY = '983th8fj98hgh98dj09gj08g4w'
By default, identity verification is enabled using user IDs. This can be overridden using the WAGTAILADMIN_INTERCOM_IDENTITY_VERIFICATION setting:
WAGTAILADMIN_INTERCOM_IDENTITY_VERIFICATION = 'email'
This setting can take three possible values:
- 'email':
Identity verification using email addresses.
- 'id':
Default. Identity verification via user IDs.
- None:
Disable identity verification.
The users email address is taken from the email attribute on the user model by default. If this is incorrect, it can be overridden using the WAGTAILADMIN_INTERCOM_EMAIL_ATTRIBUTE setting. Set WAGTAILADMIN_INTERCOM_EMAIL_ATTRIBUTE to None to disable sending users emails.
By default, the widget will only appear when DEBUG is False to prevent the widget appearing during development. To force the widget to show or hide itself, set the WAGTAILADMIN_INTERCOM_ENABLED setting:
WAGTAILADMIN_INTERCOM_ENABLED = True
That is it! You should now see the widget appear in the Wagtail admin.
Release files for wagtailadminintercom 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtailadminintercom-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / wagtailadminintercom-0.1.1-py2.py3-none-any.whl
| Download URL | wagtailadminintercom-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7e0a0f10e48f13af3350da1e5d524d5f5a4492190c288da401bb2654da05e860
|
|
BLAKE2b-256 checksum How to use checksums |
0c510563d3caaae31e3034487c0f0dfe1f0b662f36d9303afcef976a871d736c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |