Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Twilio integration for SMS-based Django apps

Project Description

Twilio integration for SMS-based Django apps

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.

Release History

Release History

This version
History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_twilio_sms-0.2-py2.7.egg (17.0 kB) Copy SHA256 Checksum SHA256 2.7 Egg Aug 29, 2013
django-twilio-sms-0.2.zip (10.8 kB) Copy SHA256 Checksum SHA256 Source Aug 29, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting