a Kanban application
- INSTALLED_APPS :
INSTALLED_APPS = (
'th_trello',
)
- 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",
}
},
- TH_SERVICES
add this line to the TH_SERVICES setting
TH_SERVICES = (
'th_trello.my_trello.ServiceTrello',
)
- 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>',
}
enter the following command
python manage.py migrate
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