Configurando um post único no template post.html

This commit is contained in:
Luiz Otávio
2023-04-27 10:48:27 -03:00
parent 822d56db61
commit 5f1f4e36ae
4 changed files with 34 additions and 6 deletions

View File

@@ -8,6 +8,6 @@ app_name = 'blog'
# https://docs.djangoproject.com/en/4.2/topics/http/urls/
urlpatterns = [
path('', views.blog, name='home'),
path('<int:id>/', views.post, name='post'),
path('<int:post_id>/', views.post, name='post'),
path('exemplo/', views.exemplo, name='exemplo'),
]