Usando a mesma URL de forma estática e dinâmica
This commit is contained in:
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user