Skip to content

Commit

Permalink
twilio hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
sara committed Jun 30, 2018
1 parent fc2d04a commit 8121c2d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion garfield/lookup/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from django.shortcuts import render
from django.http import HttpResponse
from twilio.twiml.messaging_response import MessagingResponse

from .decorators import twilio_view
# Create your views here.
@twilio_view
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
response = MessagingResponse()
response.message("Hello World!")
return response

0 comments on commit 8121c2d

Please sign in to comment.