Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagueness and skipping of sections #7

Open
vaMuchenje opened this issue Jan 27, 2017 · 0 comments
Open

Vagueness and skipping of sections #7

vaMuchenje opened this issue Jan 27, 2017 · 0 comments

Comments

@vaMuchenje
Copy link

vaMuchenje commented Jan 27, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant