A simple Django app to send SMS messages using an API similar to that of django.core.mail.
Project description
# django-smsish
[![PyPI version](https://badge.fury.io/py/django-smsish.svg)](https://badge.fury.io/py/django-smsish)
[![Build Status](https://travis-ci.org/RyanBalfanz/django-smsish.svg)](https://travis-ci.org/RyanBalfanz/django-smsish)
[![Code Health](https://landscape.io/github/RyanBalfanz/django-smsish/master/landscape.svg?style=flat)](https://landscape.io/github/RyanBalfanz/django-smsish/master)
[![Coverage Status](https://coveralls.io/repos/github/RyanBalfanz/django-smsish/badge.svg?branch=develop)](https://coveralls.io/github/RyanBalfanz/django-smsish)
Installation
------------
Add `smsish` to your `INSTALLED_APPS` and set `SMS_BACKEND`.
INSTALLED_APPS += (
'smsish',
)
SMS_BACKEND_CONSOLE = 'smsish.sms.backends.console.SMSBackend'
SMS_BACKEND_DUMMY = 'smsish.sms.backends.dummy.SMSBackend'
SMS_BACKEND_TWILIO = 'smsish.sms.backends.twilio.SMSBackend'
SMS_BACKEND = SMS_BACKEND_DUMMY
To use the Twilio backend set some additional settings as well.
TWILIO_ACCOUNT_SID = os.getenv("TWILIO_ACCOUNT_SID", None)
TWILIO_AUTH_TOKEN = os.getenv("TWILIO_AUTH_TOKEN", None)
TWILIO_MAGIC_FROM_NUMBER = "+15005550006" # This number passes all validation.
TWILIO_FROM_NUMBER = os.getenv("TWILIO_FROM_NUMBER", TWILIO_MAGIC_FROM_NUMBER)
Note: You must also `pip install twilio` to use the Twilio backend.
[![PyPI version](https://badge.fury.io/py/django-smsish.svg)](https://badge.fury.io/py/django-smsish)
[![Build Status](https://travis-ci.org/RyanBalfanz/django-smsish.svg)](https://travis-ci.org/RyanBalfanz/django-smsish)
[![Code Health](https://landscape.io/github/RyanBalfanz/django-smsish/master/landscape.svg?style=flat)](https://landscape.io/github/RyanBalfanz/django-smsish/master)
[![Coverage Status](https://coveralls.io/repos/github/RyanBalfanz/django-smsish/badge.svg?branch=develop)](https://coveralls.io/github/RyanBalfanz/django-smsish)
Installation
------------
Add `smsish` to your `INSTALLED_APPS` and set `SMS_BACKEND`.
INSTALLED_APPS += (
'smsish',
)
SMS_BACKEND_CONSOLE = 'smsish.sms.backends.console.SMSBackend'
SMS_BACKEND_DUMMY = 'smsish.sms.backends.dummy.SMSBackend'
SMS_BACKEND_TWILIO = 'smsish.sms.backends.twilio.SMSBackend'
SMS_BACKEND = SMS_BACKEND_DUMMY
To use the Twilio backend set some additional settings as well.
TWILIO_ACCOUNT_SID = os.getenv("TWILIO_ACCOUNT_SID", None)
TWILIO_AUTH_TOKEN = os.getenv("TWILIO_AUTH_TOKEN", None)
TWILIO_MAGIC_FROM_NUMBER = "+15005550006" # This number passes all validation.
TWILIO_FROM_NUMBER = os.getenv("TWILIO_FROM_NUMBER", TWILIO_MAGIC_FROM_NUMBER)
Note: You must also `pip install twilio` to use the Twilio backend.
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
django-smsish-1.3.0.tar.gz
(10.9 kB
view details)
File details
Details for the file django-smsish-1.3.0.tar.gz
.
File metadata
- Download URL: django-smsish-1.3.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fa9f975a3ee5489ca9a04df2145d7e91e8dd5244d320f022628f835341efc6a |
|
MD5 | 18c8cc98df9093fa67043c34e912354b |
|
BLAKE2b-256 | 86b63d2dbc645a00b7fdb21afeaf298aac3b4c0887f60b8eba2f9d4c6fa3f742 |