formation_django/exemple/mon_site/blog/urls.py

9 lines
192 B
Python
Raw Permalink Normal View History

2018-04-07 13:49:12 +00:00
from django.urls import path
from . import views
app_name = "blog"
urlpatterns = [
2018-04-10 09:28:27 +00:00
path('', views.index, name="index"),
path('article/<int:pk>', views.view_article, name="article")
2018-04-07 13:49:12 +00:00
]