diff --git a/django_library/urls.py b/django_library/urls.py index 5cd8b91..7f08ccd 100644 --- a/django_library/urls.py +++ b/django_library/urls.py @@ -16,8 +16,9 @@ """ from django.contrib import admin -from django.urls import path +from django.urls import path, include urlpatterns = [ path("admin/", admin.site.urls), + path("library/", include("library.urls")), ] diff --git a/library/templates/library/author_detail.html b/library/templates/library/author_detail.html new file mode 100644 index 0000000..f636522 --- /dev/null +++ b/library/templates/library/author_detail.html @@ -0,0 +1,50 @@ +{% extends 'library/base.html' %} + +{% block title %}{{ author.name }}{% endblock %} + +{% block content %} +
{{ author.bio }}
++ Publicado: {{ book.published_date }} +
+ {% if book.is_available %} + Disponible + {% else %} + No Disponible + {% endif %} +{{ author.bio|truncatewords:30 }}
+Fecha de publicación: {{ book.published_date }}
++ Estado: + {% if book.is_available %} + Disponible + {% else %} + No Disponible + {% endif %} +
++ Publicado: {{ book.published_date }} +
+ Ver detalles +