-
Notifications
You must be signed in to change notification settings - Fork 295
Description
In your section titled "Adding Web Views", you go from defining the views in reviews/views.py to talking about templates and giving sample code for the reviews_list view template. There is no mention of where this code goes and where this file exists. I can follow through what the code means, but have no idea where it lives or will leave. At this point, there is no templates folder nor file. It would be clearer if you gave more info as to where this code goes and where that file lives:
<h2>Latest reviews</h2>
{% if latest_review_list %}
<div>
{% for review in latest_review_list %}
<div>
<h4><a href="{% url 'reviews:review_detail' review.id %}">
{{ review.wine.name }}
</a></h4>
<h6>rated {{ review.rating }} of 5 by {{ review.user_name }}</h6>
<p>{{ review.comment }}</p>
</div>
{% endfor %}
</div>
{% else %}
<p>No reviews are available.</p>
{% endif %}
Because of this lack of clarity, the tutorial from here onwards just becomes confusing. And when I check out stage-0.3 I look around the files to see where it might exist, and I find it in some templates folder along with some 3 other templates which are never mentioned in the tutorial or how the come about. I know it might simplistic of me to ask this, but that's the part I gave up. Tried it a few times and still could not reproduce your work other than just copying and pasting, which is useless.