Skip to content

Commit

Permalink
EDIT settings & urls.py in config folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BrilliantPhoenix2024 committed Jul 28, 2022
1 parent 5591e51 commit aa5a841
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions books/templates/books/book_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
<div class="row w-sm-75 w-100">
<div class="col-xs-12 col-md-3 d-flex justify-content-center">
<div>
<img src="https://newcdn.fidibo.com/images/books/65579_50411_normal.jpg"
class="img-fluid rounded-start" alt="...">
{% if book.cover %}
<img src="{{ book.cover.url }}"
class="img-fluid rounded-start" alt="...">
{% endif %}
</div>
</div>
<div class="col-xs-12 col-md-6 text-center text-md-end mt-md-1 mt-4">
Expand Down
2 changes: 2 additions & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,5 @@





4 changes: 3 additions & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@
path('accounts/', include('django.contrib.auth.urls')),
path('accounts/', include('accounts.urls')),
path('books/', include('books.urls')),
] + static(settings.MEDIA_URL, documant_root=settings.MEDIA_ROOT)
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)



Binary file added media/covers/6535_71370_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/covers/71338_80196_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/covers/79659_24207_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/covers/93806_68581_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aa5a841

Please sign in to comment.