ernestophone.ens.fr/propositions/urls.py

12 lines
350 B
Python
Raw Normal View History

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