Skip to main content

A RESTful API for managing messaging content, subscriptions and sending via Vumi-go

Project description

A RESTful API for managing messaging content, subscriptions and sending via Vumi-go

$ virtualenv ve
$ source ve/bin/activate
(ve)$ pip install -r requirements.txt
(ve)$ pip install -r requirements-dev.txt
(ve)$ py.test --ds=testsettings subscription/tests.py --cov=subscription

Configuration

The following configuration (with dummy values replaced by real ones) needs to be added to settings.py to configure this app:

INSTALLED_APPS = [
    # Usual Django stuff plus
    # Third-party apps
    'south',
    'tastypie',
    'djcelery',
    # Us
    'subscription'
]

VUMI_GO_ACCOUNT_KEY = "replaceme"
VUMI_GO_CONVERSATION_KEY = "replaceme"
VUMI_GO_ACCOUNT_TOKEN = "replaceme"

CELERY_ACCEPT_CONTENT = ['pickle']
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_RESULT_SERIALIZER = 'pickle'
CELERY_ALWAYS_EAGER = DEBUG
SUBSCRIPTION_SEND_INITIAL_DELAYED = 1800 # optional delay in seconds

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-messaging-subscription-0.4.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django-messaging-subscription-0.4.0.tar.gz.

File metadata

File hashes

Hashes for django-messaging-subscription-0.4.0.tar.gz
Algorithm Hash digest
SHA256 11dd2ea2b456dd49f77b6d35024a88c1ebe6dcb07f82f460e42b85274b287029
MD5 9de525b8a1ab2f8a64aa6fa8db4adf70
BLAKE2b-256 3b68371e3ccbbf9abff354e7fe57409d4006244ba78809904759e89116bdc60c

See more details on using hashes here.

Provenance

File details

Details for the file django_messaging_subscription-0.4.0-py2-none-any.whl.

File metadata

File hashes

Hashes for django_messaging_subscription-0.4.0-py2-none-any.whl
Algorithm Hash digest
SHA256 87cc6884f674258f2cd0af1f5d97b383f42eec30f701728509f1eb3562286b6b
MD5 34da2f21c64ad4d6ae0a914d10a386a0
BLAKE2b-256 3a5ca6f18410227bfa75a6482d51522c6b6829de481129b1f64d123aa25b190d

See more details on using hashes here.

Provenance

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