Last active
September 2, 2015 11:54
-
-
Save nloadholtes/1129c2bd9d10fb677236 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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