Django models for Twilio's Programmable SMS
Project description
=============================
django-twilio-sms-models
=============================
.. image:: https://badge.fury.io/py/django-twilio-sms-models.png
:target: https://badge.fury.io/py/django-twilio-sms-models
.. image:: https://travis-ci.org/cfc603/django-twilio-sms-models.png?branch=master
:target: https://travis-ci.org/cfc603/django-twilio-sms-models
.. image:: https://codecov.io/github/cfc603/django-twilio-sms-models/coverage.svg?branch=master
:target: https://codecov.io/github/cfc603/django-twilio-sms-models?branch=master
Django models for Twilio's Programmable SMS
Documentation
-------------
The full documentation is at https://django-twilio-sms-models.readthedocs.org.
Quickstart
----------
Install django-twilio-sms-models::
$ pip install django-twilio-sms-models
Follow django-twilio install instructions:
http://django-twilio.readthedocs.org/en/latest/install.html
Add 'django-twilio-sms' to your `INSTALLED_APPS`::
# project/settings.py
INSTALLED_APPS = (
...
'django_twilio_sms',
)
Set 'DJANGO_TWILIO_SMS_SITE_HOST' setting:
This is used to build an absolute URI for the callback url. Can also be used
with ngrok on your development machine.
::
# project/settings.py
DJANGO_TWILIO_SMS_SITE_HOST = 'www.example.com'
Include django-twilio-sms URLconf in your project `urls.py`::
url(r'^twilio-integration/', include('django_twilio_sms.urls', namespace='django_twilio_sms')),
Sync the database::
$ python manage.py migrate
Running Tests
--------------
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py
Credits
---------
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-pypackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
1.2.0 (2016-05-13)
++++++++++++++++++
* Handle unsubscribed PhoneNumber
1.1.0 (2016-04-16)
++++++++++++++++++
* Basic admin configuration (#4) (Thanks @carlkibler)
* Update docs
* Fix settings typo
* Add response_message signal
1.0.0 (2016-04-14)
++++++++++++++++++
* Setup tox
* Setup Travis CI
* Add sync_responses command
0.1.0 (2016-04-11)
++++++++++++++++++
* First release on PyPI.
django-twilio-sms-models
=============================
.. image:: https://badge.fury.io/py/django-twilio-sms-models.png
:target: https://badge.fury.io/py/django-twilio-sms-models
.. image:: https://travis-ci.org/cfc603/django-twilio-sms-models.png?branch=master
:target: https://travis-ci.org/cfc603/django-twilio-sms-models
.. image:: https://codecov.io/github/cfc603/django-twilio-sms-models/coverage.svg?branch=master
:target: https://codecov.io/github/cfc603/django-twilio-sms-models?branch=master
Django models for Twilio's Programmable SMS
Documentation
-------------
The full documentation is at https://django-twilio-sms-models.readthedocs.org.
Quickstart
----------
Install django-twilio-sms-models::
$ pip install django-twilio-sms-models
Follow django-twilio install instructions:
http://django-twilio.readthedocs.org/en/latest/install.html
Add 'django-twilio-sms' to your `INSTALLED_APPS`::
# project/settings.py
INSTALLED_APPS = (
...
'django_twilio_sms',
)
Set 'DJANGO_TWILIO_SMS_SITE_HOST' setting:
This is used to build an absolute URI for the callback url. Can also be used
with ngrok on your development machine.
::
# project/settings.py
DJANGO_TWILIO_SMS_SITE_HOST = 'www.example.com'
Include django-twilio-sms URLconf in your project `urls.py`::
url(r'^twilio-integration/', include('django_twilio_sms.urls', namespace='django_twilio_sms')),
Sync the database::
$ python manage.py migrate
Running Tests
--------------
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py
Credits
---------
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-pypackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
1.2.0 (2016-05-13)
++++++++++++++++++
* Handle unsubscribed PhoneNumber
1.1.0 (2016-04-16)
++++++++++++++++++
* Basic admin configuration (#4) (Thanks @carlkibler)
* Update docs
* Fix settings typo
* Add response_message signal
1.0.0 (2016-04-14)
++++++++++++++++++
* Setup tox
* Setup Travis CI
* Add sync_responses command
0.1.0 (2016-04-11)
++++++++++++++++++
* 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
Built Distribution
File details
Details for the file django-twilio-sms-models-1.2.0.tar.gz
.
File metadata
- Download URL: django-twilio-sms-models-1.2.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf9980b9177537c76d522d47d9b4d72f08bd133f4155f1f87d451ca4577390e |
|
MD5 | ae12d53eee2a472d1c60fcf19cbe5303 |
|
BLAKE2b-256 | e1dab9c5e9290f2a686fd40bd55958177e8443b9d7c35b45c86fc3975235154e |
File details
Details for the file django_twilio_sms_models-1.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_twilio_sms_models-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac2f54b7d4f1ef66930162781e9539ac6c5b556eeabf5ecbc196bb1629e63e75 |
|
MD5 | b387ba2304180b3b5300dbb4b8fec029 |
|
BLAKE2b-256 | 779e261e7c186e3430ee01f258d4e66a646c9e10cf12f1db0b9931c99b5431c9 |