Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

aptivate/ivr-twilio-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IVR with Django demo

Local setup

$ conda create -n twilio-test python=3.4.1 
$ source activate twilio-test
$ pip install -r requirements.txt

(Note, I use conda to manage python, could just use a virtualenv)

Get your environment variables ready

$ cp example.env .env

Edit .env with all the correct variables, then run.

$ source .env
$ python manage.py migrate
$ python manage.py runserver

Your app should now be running on localhost:8000.

If you have already install heroku toolbelt, which has foreman included, then you can use foreman and your app will be running on localhost:5000.

$ foreman start

Deploying to Heroku

Install the Heroku Toolbelt.

$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku open

Don't forget to set the heroku environment variables, either through

$ heroku config:set XXX=

or through the heroku dashboard (under settings)

About

Quick spike of building an IVR with Twilio and Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages