Skip to content

Latest commit

 

History

History
90 lines (60 loc) · 1.83 KB

trello.rst

File metadata and controls

90 lines (60 loc) · 1.83 KB

Trello

Service Description:

a Kanban application

modifications of settings.py

  1. INSTALLED_APPS :
INSTALLED_APPS = (
    'th_trello',
)
  1. Cache :

After the default cache add :

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:https://127.0.0.1:6379/5",
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
        }
    },
  1. TH_SERVICES

add this line to the TH_SERVICES setting

TH_SERVICES = (
    'th_trello.my_trello.ServiceTrello',
)
  1. The service keys

I strongly recommend that your put the following in a local_settings.py, to avoid to accidentally push this to a public repository

TH_TRELLO = {
    'consumer_key': '<your trello key>',
    'consumer_secret': '<your trello secret>',
}

creation of the table of the services

enter the following command

python manage.py migrate

from the admin panel, activation of the service

from http:https://yourdomain.com/admin/django_th/servicesactivated/add/

  • Select "Trello",
  • Set the Status to "Enabled"
  • Check Auth Required: this will permit to redirect the user (or you) to Trello website to confirm the access of the Trello account
  • Fill a description