Skip to content

SubZeb/webhooks-example-django

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webhooks Example (Django)

An example application that demonstrates how to build Twilio-ready webhooks with Python and Django, visit this link.

Installation

Step-by-step on how to deploy, configure and develop on this example app.

Fastest Deploy

Use Heroku to deploy this app immediately:

Deploy

Getting Started

  1. Grab latest source
git clone git://github.com/TwilioDevEd/webhooks-example-django.git 
  1. Navigate to folder and create new Heroku Cedar app
heroku create
  1. Deploy to Heroku
git push heroku master
  1. Scale your dynos
heroku scale web=1
  1. Visit the home page of your new Heroku app to see your newly configured app!
heroku open

Development

Getting your local environment setup to work with this app is ridiculously easy.

  1. Run the django app
python manage.py runserver
  1. 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.

  2. Tweak away on webhooks/views.py.

Webhook with Twilio {#twilio}

To learn how Twilio uses these webhooks to connect calls and messages go here.

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

githalytics.com alpha

About

A sample Django application that supports Twilio webhooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%