<commit_before>Trello
======

Service Description:
--------------------

a Kanban application

modifications of settings.py
----------------------------

1) INSTALLED_APPS :

add or uncomment the following line

.. code-block:: python

    INSTALLED_APPS = (
        # 'th_trello',
    )

to get

.. code-block:: python

    INSTALLED_APPS = (
        'th_trello',
    )

2) Cache :

After the default cache add :

.. code-block:: python

    CACHES = {
        'default':
        {
            'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
            'LOCATION': BASE_DIR + '/cache/',
            'TIMEOUT': 600,
            'OPTIONS': {
                'MAX_ENTRIES': 1000
            }
        },
        # Trello Cache
        'th_trello':
        {
            'TIMEOUT': 500,
            "BACKEND": "django_redis.cache.RedisCache",
            "LOCATION": "redis://127.0.0.1:6379/5",
            "OPTIONS": {
                "CLIENT_CLASS": "django_redis.client.DefaultClient",
            }
        },

modifications of th_settings.py
-------------------------------

1) TH_SERVICES

add or uncomment the following line

.. code-block:: python

    TH_SERVICES = (
        # 'th_trello.my_trello.ServiceTrello',
    )

to get

.. code-block:: python

    TH_SERVICES = (
        'th_trello.my_trello.ServiceTrello',
    )

2) The service keys

It's strongly recommended that your put the following in a local_settings.py, to avoid to accidentally push this to a public repository


.. code-block:: python

    TH_TRELLO = {
        'consumer_key': '<your trello key>',
        'consumer_secret': '<your trello secret>',
    }<commit_msg>trello.rst : Updated trello.rst from env.sample file<commit_after>Trello
======

Service Description:
--------------------

a Kanban application

modifications of settings.py
----------------------------

1) INSTALLED_APPS :

add or uncomment the following line

.. code-block:: python

    INSTALLED_APPS = (
        # 'th_trello',
    )

to get

.. code-block:: python

    INSTALLED_APPS = (
        'th_trello',
    )

2) Cache :

After the default cache add :

.. code-block:: python

    CACHES = {
        'default':
        {
            'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
            'LOCATION': BASE_DIR + '/cache/',
            'TIMEOUT': 600,
            'OPTIONS': {
                'MAX_ENTRIES': 1000
            }
        },
        # Trello Cache
        'th_trello':
        {
            'TIMEOUT': 500,
            "BACKEND": "django_redis.cache.RedisCache",
            "LOCATION": "redis://127.0.0.1:6379/5",
            "OPTIONS": {
                "CLIENT_CLASS": "django_redis.client.DefaultClient",
            }
        },

modifications of th_settings.py
-------------------------------

1) TH_SERVICES

add or uncomment the following line

.. code-block:: python

    TH_SERVICES = (
        # 'th_trello.my_trello.ServiceTrello',
    )

to get

.. code-block:: python

    TH_SERVICES = (
        'th_trello.my_trello.ServiceTrello',
    )

2) The service keys

Here are the modifications of .env file you will need to do to be able to use your credentials with Trello

.. code-block:: python

    TH_TRELLO = {
        TH_TUMBLR_CONSUMER_KEY= 'your trello key'
        TH_TUMBLR_CONSUMER_SECRET= 'your trello secret'
    }
{'fraction_non_alphanumeric': 0.15646461630337413, 'fraction_numerical': 0.014929829799940281, 'mean_word_length': 1.7436527436527436, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1251359', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1057, 'n_words': 239}