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

from . import views

urlpatterns = [
6 7 8
    url(r'^new_commande/(?P<userid>[0-9]+)$', views.new_commande, name='new-commande'),
    url(r'^edit_commande/(?P<commandeid>[0-9]+)$', views.edit_commande, name='edit-commande'),
    url(r'^del_commande/(?P<commandeid>[0-9]+)$', views.del_commande, name='del-commande'),
9 10 11 12 13 14 15 16
    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'),
17 18 19
    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'),
20 21 22
    url(r'^add_article/$', views.add_article, name='add-article'),
    url(r'^edit_article/(?P<articleid>[0-9]+)$', views.edit_article, name='edit-article'),
    url(r'^del_article/$', views.del_article, name='del-article'),
Gabriel Detraz's avatar
Gabriel Detraz committed
23
    url(r'^control/$', views.control, name='control'),
24
    url(r'^index_article/$', views.index_article, name='index-article'),
25 26
    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'),
27
    url(r'^history/(?P<object>credit)/(?P<id>[0-9]+)$', views.history, name='history'),
28
    url(r'^history/(?P<object>article)/(?P<id>[0-9]+)$', views.history, name='history'),
29
    url(r'^history/(?P<object>commande)/(?P<id>[0-9]+)$', views.history, name='history'),
30 31 32 33
    url(r'^$', views.index, name='index'),
]