Commit d3bc83a1 by Егор Юганов

lessons 1-20

1 parent 646fe444
No preview for this file type
{{ album }} <img src="{{ album.album_logo }}">
\ No newline at end of file
<h1>{{ album.album_title }}</h1>
<h3>{{ album.artist }}</h3>
<ul>
{% for song in album.song_set.all %}
<li>{{ song.song_title }} - {{ song.file_type }}</li>
{% endfor %}
</ul>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<h3>Here are all my Albums</h3> <h3>Here are all my Albums</h3>
<ul> <ul>
{% for album in all_albums %} {% for album in all_albums %}
<li><a href="/music/{{ album.id }}">{{ album.album_title }}</a></li> <li><a href="{% url 'detail' album.id %}">{{ album.album_title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!