Django APP that provide an integration with twilio SMS service.
Tested on Django 1.11.2 and Python 3.6.1 \o/
- SMS sender through Twilio API
- Callback status update for deliverd sms
- Quote by user monthly and daily
- SID, Token twilio storaged in DB
TWILIO_NUMBER
TWILIO_TEST_NUMBER_TO
TWILIO_ACCOUNT_SID
TWILIO_AUTH_TOKEN
TWILIO_NUMBER
TWILIO_TEST_NUMBER_TO
TWILIO_ACCOUNT_SID
TWILIO_AUTH_TOKEN
ENABLE_SMS = False
DEFAULT_SMS_LIMIT_BY_DAY = 2
DEFAULT_SMS_LIMIT_BY_MONTH = 2
SITE_URL = "."...
Just pipenv install
url(r'^sms/', include('sms.urls')),
INSTALLED_APPS = [
...
'sms.apps.SmsConfig',
]
In debug mode, SMS are not sent using twilio to avoid charges.
- Prevent body greater than 1600 characters in send method
- try again fix error populate with method SMS.try_again_populate
- prevent send scheduled emails
- prevent send again emails already sent
- Build SMS with populate body and html remove entities
- Rename model from Quota to ConfigSMS
- New feature: Save SID, TOKEN into DB
- Associate SMS with config to get credentials and limits
- to delivery use sms.send() will check the quote limit automatically
- method check_quota was deprecated
- unlimit quote is valid if max_day or max_month are negative