Skip to content

Instantly share code, notes, and snippets.

@rdegges
Created January 3, 2011 06:18
Show Gist options
  • Save rdegges/763176 to your computer and use it in GitHub Desktop.
Save rdegges/763176 to your computer and use it in GitHub Desktop.
A simple example of a django-tropo view.
from tropo import Tropo
from djtropo import tropo_view
@tropo_view
def ivrintro(request):
"""Say hello world and hangup."""
t = Tropo()
t.say('hello, world!')
t.hangup()
return t.RenderJson()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment