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
- Host: GitHub
- URL: https://github.com/bogdal/django-sms
- Owner: bogdal
- Created: 2012-02-20T19:15:33.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-04-24T09:29:47.000Z (about 13 years ago)
- Last Synced: 2024-10-14T01:44:27.149Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 224 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
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