ernestophone.ens.fr/pads/urls.py

13 lines
343 B
Python
Raw Normal View History

from django.conf.urls import url
from pads import views
from pads.views import PadUpdate, PadDelete
urlpatterns = [
url(r'^$', views.liste_pads, name='pads-liste'),
url(r'^ajouter$', views.add_pad, name='pads-add'),
url(r'^edition/(?P<pk>\d+)$', PadUpdate.as_view()),
url(r'^supprimer/(?P<pk>\d+)$', PadDelete.as_view()),
]