-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef38d91
commit 63d4d06
Showing
9 changed files
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,4 @@ movieratings/fixtures/ | |
*.sqlite | ||
*.sqlite3 | ||
db.sqlite3 | ||
movieratings/db.sqlite3 |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
{% extends "Rater/base.html" %} | ||
|
||
{% block content %} | ||
<h2>All movies</h2> | ||
{% for movie in movies %} | ||
<div> | ||
<p>{{ movie.title }}</p> | ||
|
||
<p> | ||
<em>{{ movie.release_date }}</em> | ||
- | ||
{{ movie.rating__count }} ratings</p> | ||
</div> | ||
<h2>This is the index page</h2> | ||
<p>there are many pages like it</p> | ||
<p>but this one is the index</p> | ||
{% endfor %} | ||
{% endblock %} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "Rater/base.html" %} | ||
|
||
{% block content %} | ||
<h2>Movie: {{ movie.title }}</h2> | ||
<p>average score = {{ movie.avg_rating }}</p> | ||
<p>has been reviewed by users</p> | ||
<ul> | ||
{% for rating in ratings %} | ||
<li><a href="{% url 'view_user' rating.rater.id %}">User number {{ rating.rater.id }}</a> | ||
gave it {{ rating.rating }} stars</li> | ||
{% endfor %} | ||
|
||
{% endblock %} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "Rater/base.html" %} | ||
|
||
{% block content %} | ||
<h2>All movies</h2> | ||
<p>(highest scoring, reviewed by 10 or more people)</p> | ||
{% for movie in movies %} | ||
<div> | ||
<p><a href="{% url 'view_movie' movie.id %}">{{ movie.title }}</a> | ||
- average rating of | ||
{{ movie.avg_rating }} stars, reviewed by | ||
{{ movie.total_ratings }} users</p> | ||
</div> | ||
{% endfor %} | ||
{% endblock %} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "Rater/base.html" %} | ||
|
||
{% block content %} | ||
<h2>User number {{ rater.id }}</h2> | ||
<p>average score given = {{ rater.avg_rating }}</p> | ||
<p>the movies and scores given were:</p> | ||
<ul> | ||
{% for rating in ratings %} | ||
<li><a href="{% url 'view_movie' rating.movie.id %}">{{ rating.movie.title }}</a> | ||
rated {{ rating.rating }} stars</li> | ||
{% endfor %} | ||
|
||
{% endblock %} |
This file contains 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
This file contains 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