<commit_before>django-messaging-subscription
================================

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
<commit_msg>Add new setting to README<commit_after>django-messaging-subscription
================================

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
    SUBSCRIPTION_MULTIPART_BOUNDARY = "-------" 
{'fraction_non_alphanumeric': 0.1356828193832599, 'fraction_numerical': 0.003524229074889868, 'mean_word_length': 2.895368782161235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '588901', 'n_tokens_mistral': 745, 'n_tokens_neox': 704, 'n_words': 175}