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

Forked from RyanBalfanz

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.

Test

tox

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-smsish2-1.3.4.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_smsish2-1.3.4-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file django-smsish2-1.3.4.tar.gz.

File metadata

  • Download URL: django-smsish2-1.3.4.tar.gz
  • Upload date:
  • Size: 9.6 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.32.2 CPython/3.6.5

File hashes

Hashes for django-smsish2-1.3.4.tar.gz
Algorithm Hash digest
SHA256 b1c507c0533bfcbb6222e9dd75031a279f1029daac13c3cbc6a9d157c4c626cb
MD5 23624e2ea062e3b51142574646632a41
BLAKE2b-256 e2b5d14216b9add6f3c8aa8043c3e9c2b6fa72b6275822834a0baf9cad1eb567

See more details on using hashes here.

File details

Details for the file django_smsish2-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: django_smsish2-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.32.2 CPython/3.6.5

File hashes

Hashes for django_smsish2-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 da48c3898259c8f0d5c569e9f4bfb6677d7b216c71208192240065712310749f
MD5 90a1882f7297eb8987256d785e44025f
BLAKE2b-256 598316b3101c352374b3c0979107ebad600fc277698ab21803f2eac7f5c9d7e4

See more details on using hashes here.

Supported by

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