This is a simple Django application demonstrating how to integrate django-twilio into your Django projects.
-
Download this repository
-
Install the requirements with pip:
$ pip install -r requirements.txt
This will install:
- Django
- django-twilio
-
Open the urls.py to see how the URL configuration has been done
-
Open the views.py to see how the views are set up.
-
Get the server running with:
$ python manage.py runserver
You can use cURL to test the server, this will output the TWiML response:
curl -X POST 127.0.0.1:8000/sms/
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Message>
<Body>Hello world! Get in touch - paul@twilio.com</Body>
</Message>
</Response>