Skip to main content

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)

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.1.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file django-smsish-1.1.1.tar.gz.

File metadata

File hashes

Hashes for django-smsish-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4b9c4226ae2b23cd67721354bb736fece330171701c4b68eed6977d7f31d7c0d
MD5 1f77fa4923bed96714cf3aa125b941a1
BLAKE2b-256 823b9f2ca8e8c6431c70a0f8a99844b0e52b5960d9654911eb558430d069d940

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page