Usando a mesma URL de forma estática e dinâmica

This commit is contained in:
Luiz Otávio
2023-04-27 09:46:23 -03:00
parent 30a5ee9381
commit 822d56db61

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('post/<int:id>', views.post, name='post'),
path('<int:id>/', views.post, name='post'),
path('exemplo/', views.exemplo, name='exemplo'),
]