From bf0e7356aabb20f3d98ba6c0125c6f43604ee62c Mon Sep 17 00:00:00 2001 From: rogfab Date: Sat, 15 May 2021 06:23:36 +1100 Subject: [PATCH 1/3] Update base.html --- src/store/templates/store/base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/templates/store/base.html b/src/store/templates/store/base.html index 53058fb..980090e 100644 --- a/src/store/templates/store/base.html +++ b/src/store/templates/store/base.html @@ -6,7 +6,8 @@ {% endblock %} + Accueil {% block content %} {% endblock %} - \ No newline at end of file + From a98441a796be318367b3f27e19def845a3624552 Mon Sep 17 00:00:00 2001 From: rogfab Date: Sat, 15 May 2021 06:28:54 +1100 Subject: [PATCH 2/3] Update index.html --- src/store/templates/store/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/templates/store/index.html b/src/store/templates/store/index.html index 97efdea..7d1410a 100644 --- a/src/store/templates/store/index.html +++ b/src/store/templates/store/index.html @@ -6,6 +6,6 @@ {% block content %} {% for book in books %} -

{{ book.title }}

+

{{ book.title }}

{% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %} From ff86a3c7af25f974b677477ea6170b6fc64c267c Mon Sep 17 00:00:00 2001 From: rogfab Date: Sat, 15 May 2021 06:38:02 +1100 Subject: [PATCH 3/3] Update urls.py --- src/practice/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/practice/urls.py b/src/practice/urls.py index 3288051..e37a92f 100644 --- a/src/practice/urls.py +++ b/src/practice/urls.py @@ -4,7 +4,7 @@ from store.views import books, book urlpatterns = [ - path('', books), - path('/', book), + path('', books, name='index'), + path('/', book, name='book'), path('admin/', admin.site.urls), ]