formation_django/exemple/mon_site/blog/urls.py
2018-04-10 11:29:01 +02:00

8 lines
192 B
Python

from django.urls import path
from . import views
app_name = "blog"
urlpatterns = [
path('', views.index, name="index"),
path('article/<int:pk>', views.view_article, name="article")
]