Skip to main content

Add an Intercom chat widget inside the Wagtail admin

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wagtailadminintercom-0.1.0-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wagtailadminintercom-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for wagtailadminintercom-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1606e7540bee2db11d1fccf7eeb0d093a4eefa968ebd1156946cef49406b378b
MD5 6114ffa93870784d9b80692465b12601
BLAKE2b-256 0b4d4e909b7c1f2cc9109d8a9b33d61824367cde9c403285c70e147a803e8db5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page