def moviesfrom(person_id): person = tmdb.persongetinfo(person_id) movies = [] for movie in person['filmography']: tmdbmovie = tmdb.moviegetinfo(str(movie['id'])) movies.append(tmdbmovie) return movies
def person(request, person_id, slug): person = tmdb.persongetinfo(person_id) return render_to_response('person.html', {'person': person}, context_instance=RequestContext(request))