ernestophone.ens.fr/propositions/urls.py

14 lines
491 B
Python
Raw Normal View History

from django.conf.urls import url
2015-07-22 22:08:59 +02:00
from propositions.views import PropDelete
from propositions import views
2015-07-22 22:08:59 +02:00
urlpatterns = [
url(r'^$', views.liste, name='propositions-liste'),
url(r'^new/?$', views.create_prop, name='propositions-create'),
url(r'^(?P<id>\d+)/oui/?$', views.repoui, name='propositions-oui'),
url(r'^(?P<id>\d+)/non/?$', views.repnon, name='propositions-non'),
url(r'^(?P<pk>\d+)/supprimer/?$', PropDelete.as_view(),
name='propositions-delete'),
]