A simple Django app to send SMS messages using an API similar to that of django.core.mail.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-smsish2-1.3.3.tar.gz
(9.7 kB
view details)
Built Distribution
File details
Details for the file django-smsish2-1.3.3.tar.gz
.
File metadata
- Download URL: django-smsish2-1.3.3.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c5df6f56772ea1c0c7e08141114fd310d2ff57153b42f5ba5df98337ada012 |
|
MD5 | 30678e09441d820548ba6e65d11c73ba |
|
BLAKE2b-256 | 90bef5baaa709cb503b2c40695212414522b5f3e71585dbd2328d71da9aa1d28 |
Provenance
File details
Details for the file django_smsish2-1.3.3-py3-none-any.whl
.
File metadata
- Download URL: django_smsish2-1.3.3-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8423eaca5706291eb9e752707def49d205ff4fc692e2c450c7b3db406385bcb |
|
MD5 | 3df33f6350f16710b35501b9ce9698c0 |
|
BLAKE2b-256 | ebfaf4834c306916ff375f9868c50f8416ba8c85e7586ea8a495674bea3d971a |