urls.py 1.25 KB
Newer Older
1 2 3 4 5
from django.conf.urls import url

from . import views

urlpatterns = [
6 7 8 9 10 11 12 13
    url(r'^add_paiement/$', views.add_paiement, name='add-paiement'),
    url(r'^edit_paiement/(?P<paiementid>[0-9]+)$', views.edit_paiement, name='edit-paiement'),
    url(r'^del_paiement/$', views.del_paiement, name='del-paiement'),
    url(r'^index_paiement/$', views.index_paiement, name='index-paiement'),
    url(r'^add_livraison/$', views.add_livraison, name='add-livraison'),
    url(r'^edit_livraison/(?P<livraisonid>[0-9]+)$', views.edit_livraison, name='edit-livraison'),
    url(r'^del_livraison/$', views.del_livraison, name='del-livraison'),
    url(r'^index_livraison/$', views.index_livraison, name='index-livraison'),
14 15 16
    url(r'^add_credit/(?P<userid>[0-9]+)$', views.add_credit, name='add-credit'),
    url(r'^edit_credit/(?P<creditid>[0-9]+)$', views.edit_credit, name='edit-credit'),
    url(r'^del_credit/(?P<creditid>[0-9]+)$', views.del_credit, name='del-credit'),
17 18
    url(r'^history/(?P<object>paiement)/(?P<id>[0-9]+)$', views.history, name='history'),
    url(r'^history/(?P<object>livraison)/(?P<id>[0-9]+)$', views.history, name='history'),
19
    url(r'^history/(?P<object>credit)/(?P<id>[0-9]+)$', views.history, name='history'),
20 21 22 23
    url(r'^$', views.index, name='index'),
]