Skip to main content

Twilio SMS Integration for Django

Project description

Twilio SMS Integration for Django

pypi

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

This package updated with Django 1.10 support.

Used for SMS messages in SiteLedger.

Quickstart

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

  2. Add dj_twilio_sms to INSTALLED_APPS and migrate (makemigrations dj-twilio-sms/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.

  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 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-0.3.0.tar.gz (7.4 kB view hashes)

Uploaded source

Built Distribution

dj_twilio_sms-0.3.0-py2.py3-none-any.whl (10.8 kB view hashes)

Uploaded 3 5

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page