Skip to main content

Twilio SMS Integration for Django

Project description

Twilio SMS Integration for Django

pypi travis

This is fork of nigma/django-twilio-sms (Filip Wasilewski en[at]ig[dot]ma) as original package has stopped maintenance.

Django 1.10 support, migrations, timezone improvements.

Used for SMS messages in SiteLedger project.

Quickstart

  1. Install dj-twilio-sms using pip.

  2. Add dj_twilio_sms to INSTALLED_APPS and migrate (manage.py migrate).

  3. Add the following url to your urlconf:

    url(r"^messaging/", include("dj_twilio_sms.urls")),

    this will receive confirmation callbacks for any SMS message that you send using utils.send_sms also will receive incoming messages.

  4. Configure Twilio callback to send notifications to the above view’s url. (ex: /messaging/reply/ for inbound messages)

  5. Configure settings:

    • TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER - copy credentials from the Twilio panel.

    • TWILIO_CALLBACK_USE_HTTPS - use https or not for delivery confirmation callback urls.

    • TWILIO_CALLBACK_DOMAIN - optionally set domain name or IP of your site (otherwise the server name will be extracted from the request info).

    • TWILIO_DRY_MODE - set if you want to run in test mode.

Django Version Support

  • Django 1.8, 1.9 and 1.10

  • Python 2.7 and 3.5

It should work with Django 1.6 and 1.7, but you need to downgrade django-rest-framework for these versions.

License

django-twilio-sms and dj-twilio-sms is released under the MIT license.

Other Resources

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

dj-twilio-sms-2.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

dj_twilio_sms-2.1.0-py2.py3-none-any.whl (13.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dj-twilio-sms-2.1.0.tar.gz.

File metadata

File hashes

Hashes for dj-twilio-sms-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0eb225eac5ce2ccd2f3580b893c0f164f24a5a075e7ae1c0a93fe793095a1cc5
MD5 060e8e786ff9417f0b4b558357e0f102
BLAKE2b-256 941f5a92aead4a12955ed86ba30410b7c7b8fca8830cda412623313e29787d35

See more details on using hashes here.

File details

Details for the file dj_twilio_sms-2.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dj_twilio_sms-2.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26f9c77336792d9d4ee1f4aa2fa570acc833dd487cd0771ddd1da64ddecbc1d6
MD5 e8964ba138b586a14e856305004fb1bb
BLAKE2b-256 07dcb48ecae2baedd56817dabf7843c28d5a507128ec0b3d22fe8aa252af1d59

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