Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Merenon/django-tmdb
A small TMDB (themoviedatabase) wrapper for Django
https://github.com/Merenon/django-tmdb
Last synced: 7 days ago
JSON representation
A small TMDB (themoviedatabase) wrapper for Django
- Host: GitHub
- URL: https://github.com/Merenon/django-tmdb
- Owner: Merenon
- License: other
- Created: 2013-07-26T14:12:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-08T10:52:00.000Z (almost 5 years ago)
- Last Synced: 2024-04-25T13:20:31.096Z (7 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=====
django-tmdb
=====A small TMDB (themoviedatabase) API v3 wrapper for Django
Requirements
-----------
1. Python module "requests"2. TMDB Api Key
3. Enabled caching in Django
Install
-----------Simply install django-tmdb with pip
pip install django-tmdb
Quick start
-----------1. Install "requests" (e.g. with pip install requests)
2. Add "tmdb" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (
...
'tmdb',
)3. Set TMDB_API_KEY in your settings.py
TMDB_API_KEY = 'yourtmdbapikey'
4. Import the wrapper where needed (e.g. in your views.py)
from tmdb import TMDB
5. Create the instance
tmdb = TMDB()
6. Use the wrapper functions
movie_info = tmdb.getMovieInfo(tmdb_id, 'en')