An open API service indexing awesome lists of open source software.

https://github.com/bogdal/django-sms

Sms queue with smsapi.pl gateway support for Django
https://github.com/bogdal/django-sms

Last synced: 11 months ago
JSON representation

Sms queue with smsapi.pl gateway support for Django

Awesome Lists containing this project

README

          

WHAT

Sms queue with smsapi.pl gateway support for Django

INSTALLATION

pip install -e git+git://github.com/bogdal/django-sms.git#egg=django-sms

CONFIGURATION

1. Add this application in the ``INSTALLED_APPS`` portion of your settings file.

INSTALLED_APPS = (
# ...
'sms',
)

2. Activate views for callbacks.

urlpatterns = patterns('',
# ...
(r'^cbsms/', include('sms.urls')),
)

Urls:
/cbsms/received_sms/
/cbsms/delivery_report/

3. Add this parameters to your settings file:

SMS_GATEWAY = 'sms.smsapi.gateway'
SMSAPI_LOGIN =
SMSAPI_PASS =

(optional) The IPS which have access to views for callbacks
SMS_CALLBACK_IPS = ['127.0.0.1', ...] -

USAGE

Send all smses from queue with status 'Not sent':

1. for cycle task
import sms.models import SmsQueue
SmsQueue.send()

2. from console
python manage.py sms_queue_send