Create Twilio TwiML views in Django
Project description
==============
dj-twiml-views
==============
.. image:: https://badge.fury.io/py/dj-twiml-views.png
:target: http://badge.fury.io/py/dj-twiml-views
.. image:: https://pypip.in/d/dj-twiml-views/badge.png
:target: https://crate.io/packages/dj-twiml-views?version=latest
Create static Twilio TwiML views in Django
About
-----
Often when building `Twilio <https://twilio.com>`_ apps with Django, you want to quickly create a few simple static `TwiML <https://twilio.com/docs/api/twiml>`_ documents. You can usually do this by writing a view and connecting it to a URL endpoint on your Django app.
But what if you wanted to modify those documents quickly later on? Or perhaps you don't have the means to push the updates to the live server straight away?
dj-twiml-views lets you create and modify **static** TwiML documents in seconds, with a publicly addressable URL and correct XML formatting / validation.
This is perfect if you want static TwiML documents that do not require any computation, but might need modifying occassionally.
Installation
------------
1. Install dj-twiml-views::
pip install dj-twiml
2. Add dj-twiml to your installed apps in settings::
INSTALLED_APPS = {
...,
'dj_twiml',
}
3. Dj-twiml will install `django_twilio <http://django-twilio.readthedocs.org/en/latest/install.html#installation>`_ for you, but you will also need to follow the django-twilio `installation instructions <http://django-twilio.readthedocs.org/en/latest/install.html#installation>`_ too.
4. After setting up django-twilio, add the URL routing to your URLconf (urls.py)::
urlpatterns = patterns(
'',
url(r'^$', include('dj_twiml.urls')),
...
)
5. and finally set things up using South::
$ python manage.py migrate dj_twiml
Usage
-----
1. Create a new TwiML document through the admin panel (/admin/dj_twiml/twiml/)
.. image:: http://i.imgur.com/rPRjptp.png
2. Save it and test it out by sending a HTTP POST request to the new URL. The __unicode__ name of the object will show the URL:
.. image:: http://i.imgur.com/kA6hVYR.png
3. Point a Twilio phone number to the new dj-twiml snippet:
.. image:: http://i.imgur.com/YIzeZR3.png
(Get a new `Twilio trial account <https://twilio.com/try-twilio>`_ here.)
4. Ring it! Try calling **++442030952720** (UK) or **+1 844-707-9437** (USA) now :)
Features
--------
* Quickly build new or modify existing static TwiML snippets.
* Built on top of `django_twilio <https://github.com/rdegges/django-twilio>`_.
* Comes complete with Django 1.7 and Django 1.6 migrations!
History
-------
0.1.2 (2014-07-23)
++++++++++++++++++
* First release on PyPI.
dj-twiml-views
==============
.. image:: https://badge.fury.io/py/dj-twiml-views.png
:target: http://badge.fury.io/py/dj-twiml-views
.. image:: https://pypip.in/d/dj-twiml-views/badge.png
:target: https://crate.io/packages/dj-twiml-views?version=latest
Create static Twilio TwiML views in Django
About
-----
Often when building `Twilio <https://twilio.com>`_ apps with Django, you want to quickly create a few simple static `TwiML <https://twilio.com/docs/api/twiml>`_ documents. You can usually do this by writing a view and connecting it to a URL endpoint on your Django app.
But what if you wanted to modify those documents quickly later on? Or perhaps you don't have the means to push the updates to the live server straight away?
dj-twiml-views lets you create and modify **static** TwiML documents in seconds, with a publicly addressable URL and correct XML formatting / validation.
This is perfect if you want static TwiML documents that do not require any computation, but might need modifying occassionally.
Installation
------------
1. Install dj-twiml-views::
pip install dj-twiml
2. Add dj-twiml to your installed apps in settings::
INSTALLED_APPS = {
...,
'dj_twiml',
}
3. Dj-twiml will install `django_twilio <http://django-twilio.readthedocs.org/en/latest/install.html#installation>`_ for you, but you will also need to follow the django-twilio `installation instructions <http://django-twilio.readthedocs.org/en/latest/install.html#installation>`_ too.
4. After setting up django-twilio, add the URL routing to your URLconf (urls.py)::
urlpatterns = patterns(
'',
url(r'^$', include('dj_twiml.urls')),
...
)
5. and finally set things up using South::
$ python manage.py migrate dj_twiml
Usage
-----
1. Create a new TwiML document through the admin panel (/admin/dj_twiml/twiml/)
.. image:: http://i.imgur.com/rPRjptp.png
2. Save it and test it out by sending a HTTP POST request to the new URL. The __unicode__ name of the object will show the URL:
.. image:: http://i.imgur.com/kA6hVYR.png
3. Point a Twilio phone number to the new dj-twiml snippet:
.. image:: http://i.imgur.com/YIzeZR3.png
(Get a new `Twilio trial account <https://twilio.com/try-twilio>`_ here.)
4. Ring it! Try calling **++442030952720** (UK) or **+1 844-707-9437** (USA) now :)
Features
--------
* Quickly build new or modify existing static TwiML snippets.
* Built on top of `django_twilio <https://github.com/rdegges/django-twilio>`_.
* Comes complete with Django 1.7 and Django 1.6 migrations!
History
-------
0.1.2 (2014-07-23)
++++++++++++++++++
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dj-twiml-0.1.2.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for dj_twiml-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86a9eb4f7b236f9a48b2c2f9d146c997bf946e5a4c92d429479ad4520eda2cae |
|
MD5 | ccfb4402b97bcde737ab83348b94498b |
|
BLAKE2b-256 | e10535e7c6b47278816e624744d53de943e178e45d8d618716f4f10dc408272a |