django-tmdb
A small TMDB (themoviedatabase) API v3 wrapper for Django
Requirements
- Python module "requests"
- TMDB Api Key
- Enabled caching in Django
Install
Simply install django-tmdb with pip
pip install django-tmdb
Quick start
-
Install "requests" (e.g. with pip install requests)
-
Add "tmdb" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'tmdb', )
-
Set TMDB_API_KEY in your settings.py
TMDB_API_KEY = 'yourtmdbapikey'
-
Import the wrapper where needed (e.g. in your views.py)
from tmdb import TMDB
-
Create the instance
tmdb = TMDB()
-
Use the wrapper functions
movie_info = tmdb.getMovieInfo(tmdb_id, 'en')