An example application that demonstrates how to build Twilio-ready webhooks with Python and Django, visit this link.
Step-by-step on how to deploy, configure and develop on this example app.
Use Heroku to deploy this app immediately:
- Grab latest source
git clone git://github.com/TwilioDevEd/webhooks-example-django.git
- Navigate to folder and create new Heroku Cedar app
heroku create
- Deploy to Heroku
git push heroku master
- Scale your dynos
heroku scale web=1
- Visit the home page of your new Heroku app to see your newly configured app!
heroku open
Getting your local environment setup to work with this app is ridiculously easy.
- Run the django app
python manage.py runserver
-
Open browser to http://localhost:8000/message. Should see a message that this method is not allowed, since only Twilio can make requests to this url-- see below.
-
Tweak away on
webhooks/views.py
.
To learn how Twilio uses these webhooks to connect calls and messages go here.
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.