diff --git a/books/templates/books/book_detail.html b/books/templates/books/book_detail.html index e62e077..a273e5d 100644 --- a/books/templates/books/book_detail.html +++ b/books/templates/books/book_detail.html @@ -12,8 +12,10 @@
- ... + {% if book.cover %} + ... + {% endif %}
diff --git a/config/settings.py b/config/settings.py index 8006282..b0ffa42 100644 --- a/config/settings.py +++ b/config/settings.py @@ -156,3 +156,5 @@ + + diff --git a/config/urls.py b/config/urls.py index 4c6cbad..ccc333e 100644 --- a/config/urls.py +++ b/config/urls.py @@ -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) + + diff --git a/media/covers/6535_71370_normal.jpg b/media/covers/6535_71370_normal.jpg new file mode 100644 index 0000000..874d29c Binary files /dev/null and b/media/covers/6535_71370_normal.jpg differ diff --git a/media/covers/71338_80196_normal.jpg b/media/covers/71338_80196_normal.jpg new file mode 100644 index 0000000..5363cc4 Binary files /dev/null and b/media/covers/71338_80196_normal.jpg differ diff --git a/media/covers/79659_24207_normal.jpg b/media/covers/79659_24207_normal.jpg new file mode 100644 index 0000000..eb51c1c Binary files /dev/null and b/media/covers/79659_24207_normal.jpg differ diff --git a/media/covers/93806_68581_normal.jpg b/media/covers/93806_68581_normal.jpg new file mode 100644 index 0000000..9d94728 Binary files /dev/null and b/media/covers/93806_68581_normal.jpg differ