Criando urls dinâmicas no Django URL Dispatcher, view e template
This commit is contained in:
@@ -4,7 +4,10 @@ from django.urls import path
|
||||
app_name = 'blog'
|
||||
|
||||
# blog/
|
||||
# Django URLs:
|
||||
# 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('exemplo/', views.exemplo, name='exemplo'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user