Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Egor Iuganov
/
website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d3bc83a1
authored
Jun 26, 2017
by
Егор Юганов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lessons 1-20
1 parent
646fe444
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
.idea/workspace.xml
db.sqlite3
music/templates/music/detail.html
music/templates/music/index.html
.idea/workspace.xml
View file @
d3bc83a
This diff is collapsed.
Click to expand it.
db.sqlite3
View file @
d3bc83a
No preview for this file type
music/templates/music/detail.html
View file @
d3bc83a
{{ album }}
\ No newline at end of file
<img
src=
"{{ album.album_logo }}"
>
<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
music/templates/music/index.html
View file @
d3bc83a
...
...
@@ -2,7 +2,7 @@
<h3>
Here are all my Albums
</h3>
<ul>
{% 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 %}
</ul>
{% else %}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment