Skip to content

Instantly share code, notes, and snippets.

@nloadholtes
Last active September 2, 2015 11:54
Show Gist options
  • Save nloadholtes/1129c2bd9d10fb677236 to your computer and use it in GitHub Desktop.
Save nloadholtes/1129c2bd9d10fb677236 to your computer and use it in GitHub Desktop.
Shows = mongoengine.Document()
Movies = mongoengine.Document()
Recommendations = mongoengine.Document()
def front_page(self):
tv_shows = Show.objects.get(genre="comedy")
movies = Movie.objets.get(genre="comedy")
recommendations = Recommendations.objects.get(user_id=current_user)
return render_template("template/front_page.html",
tv_shows,
movies)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment