Django models for Twilio's Programmable SMS
The full documentation is at https://django-twilio-sms-models.readthedocs.org.
Install django-twilio-sms-models:
$ pip install django-twilio-sms-models
Follow django-twilio install instructions:
http://django-twilio.readthedocs.org/en/latest/install.html
Add 'django-twilio-sms' to your INSTALLED_APPS:
# project/settings.py INSTALLED_APPS = ( ... 'django_twilio_sms', )
Set 'DJANGO_TWILIO_SMS_SITE_HOST' setting:
This is used to build an absolute URI for the callback url. Can also be used with ngrok on your development machine.
# project/settings.py DJANGO_TWILIO_SMS_SITE_HOST = 'www.example.com'
Include django-twilio-sms URLconf in your project urls.py:
url(r'^twilio-integration/', include('django_twilio_sms.urls', namespace='django_twilio_sms')),
Sync the database:
$ python manage.py migrate
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r requirements-test.txt (myenv) $ python runtests.py
Tools used in rendering this package: