Skip to main content

Twilio integration for SMS-based Django apps

Project description

Twilio integration for SMS-based Django apps

Latest Version Downloads License

Developed and used at en.ig.ma software shop.

Quickstart

  1. Include django-twilio-sms in your requirements.txt file.

  2. Add django_twilio_sms to INSTALLED_APPS and syncdb/migrate.

  3. Add the following url to your urlconf:

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

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

  4. Create a new view and override IncomingSMSView.post_save(self, obj) method to receive SMS messages via callbacks from Twilio. The received obj param will be an instance of IncomingSMS model.

  5. Configure Twilio callback to send notifications to the above view’s url.

  6. 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.

License

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

Other Resources

Commercial Support

This app and many other help us build better software and focus on delivering quality projects faster. We would love to help you with your next project so get in touch by dropping an email at en@ig.ma.

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

django-twilio-sms-0.2.zip (10.8 kB view details)

Uploaded Source

Built Distribution

django_twilio_sms-0.2-py2.7.egg (17.0 kB view details)

Uploaded Source

File details

Details for the file django-twilio-sms-0.2.zip.

File metadata

File hashes

Hashes for django-twilio-sms-0.2.zip
Algorithm Hash digest
SHA256 df1bb515c919b01f2098a663f33cf2d24adfa45fe3aca2344533d049d70b20e2
MD5 81f8ed6cfa263c8164a27e63bd14c4ee
BLAKE2b-256 60ac8958b23dd02b428e71612d1e159e81b0c50efbe2188b9a3ecfe84a89ec66

See more details on using hashes here.

File details

Details for the file django_twilio_sms-0.2-py2.7.egg.

File metadata

File hashes

Hashes for django_twilio_sms-0.2-py2.7.egg
Algorithm Hash digest
SHA256 b6826a270c48105a5c00eb3cbe12ce456974911172a8336597f367e59dc85bd2
MD5 37a9cf3270e9f103e43afa6f653cd0dd
BLAKE2b-256 611be6ade578365ddfd0b7d858b6f4de0c749f0b0a128bb0e1f5d15bbee7a847

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