Twilio SMS Integration for Django
Project description
Twilio SMS Integration for Django
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
Install dj-twilio-sms using pip.
Add dj_twilio_sms to INSTALLED_APPS and migrate (manage.py migrate).
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.
Configure Twilio callback to send notifications to the above view’s url. (ex: /messaging/reply/ for inbound messages)
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
GitHub repository - https://github.com/mastizada/dj-twilio-sms
PyPi Package site - https://pypi.python.org/pypi/dj-twilio-sms
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
Built Distribution
File details
Details for the file dj-twilio-sms-2.1.0.tar.gz
.
File metadata
- Download URL: dj-twilio-sms-2.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb225eac5ce2ccd2f3580b893c0f164f24a5a075e7ae1c0a93fe793095a1cc5 |
|
MD5 | 060e8e786ff9417f0b4b558357e0f102 |
|
BLAKE2b-256 | 941f5a92aead4a12955ed86ba30410b7c7b8fca8830cda412623313e29787d35 |
File details
Details for the file dj_twilio_sms-2.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: dj_twilio_sms-2.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26f9c77336792d9d4ee1f4aa2fa570acc833dd487cd0771ddd1da64ddecbc1d6 |
|
MD5 | e8964ba138b586a14e856305004fb1bb |
|
BLAKE2b-256 | 07dcb48ecae2baedd56817dabf7843c28d5a507128ec0b3d22fe8aa252af1d59 |