/django-calendar-sms

This reusable Django app can help you to send Sms via Google Calendar for Free.

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

SMS Notification for Free on Django

Build Status https://coveralls.io/repos/gotlium/django-calendar-sms/badge.png?branch=master Current version on PyPi Downloads from PyPi

What's that

This reusable Django app can help you to send sms via Google Calendar (for free) on your Django Project.

Installation:

$ pip install django-calendar-sms
  1. Add the calendar_sms application to INSTALLED_APPS in your settings file (usually settings.py)
  2. Sync database (./manage.py syncdb)

Demo:

$ sudo apt-get install virtualenvwrapper
$ mkvirtualenv django-calendar-sms
$ git clone https://github.com/gotlium/django-calendar-sms.git
$ cd django-calendar-sms
$ python setup.py develop
$ cd demo
$ pip install -r requirements.txt
$ python manage.py syncdb
$ python manage.py migrate
$ python manage.py shell

Usage:

  1. Setup Google Account data for current website on admin panel
  2. Try to send sms from shell (./manage.py shell):
>>> from calendar_sms.sms import sendSMS
>>> print sendSMS('Hello, World!')

Send SMS in background:

  1. Install django-celery:
$  pip install django-celery
  1. Add the djcelery application to INSTALLED_APPS in settings.py
  2. Add django-calendar-sms configuration into project settings:
CELERY_IMPORTS = ('calendar_sms',)
  1. Sync database (./manage.py syncdb)
  2. Run Rabbit-MQ:
$  sudo rabbitmq-server -detached
  1. Run celery daemon in project directory:
$  nohup python manage.py celery worker >& /dev/null &
  1. Try to send sms:
>>> from calendar_sms.tasks import SMSSend
>>> SMSSend.delay('Hello, World (background task)!')
You can use multi accounts on one or several sites

Compatibility:

  • Python: 2.6, 2.7
  • Django: 1.3.x, 1.4.x, 1.5.x, 1.6
Bitdeli badge