django-gddkia-impediments-on-roads

Django client for gddkia-impediments-on-roads


License
MIT
Install
pip install django-gddkia-impediments-on-roads==0.1

Documentation

django-gddkia-impediments-on-roads

Code Climate https://travis-ci.org/tomi77/django-gddkia-impediments-on-roads.svg?branch=master https://coveralls.io/repos/github/tomi77/django-gddkia-impediments-on-roads/badge.svg?branch=master

Installation

Install package via pip

pip install django-gddkia-impediments-on-roads

Configuration

Configure cache options

# Cache backend name
IMPEDIMENTS_CACHE_BACKEND_NAME = 'default'

# Cache key
IMPEDIMENTS_CACHE_KEY = 'impediments'

# Max time of cache
IMPEDIMENTS_CACHE_TIMEOUT = 3600

API Usage

from dj_impediments import get_impediments

print get_impediments()