a206288bbe
On n'utilise plus des chemins du type `"calendrier.views.home"` sous forme de chaîne de caratères (déprécié).
13 lines
491 B
Python
13 lines
491 B
Python
from django.conf.urls import url
|
|
|
|
from propositions.views import PropDelete
|
|
from propositions import views
|
|
|
|
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'),
|
|
]
|