urls.py 1.81 KB
Newer Older
chirac's avatar
chirac committed
1 2 3 4 5 6 7
from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^new_facture/(?P<userid>[0-9]+)$', views.new_facture, name='new-facture'),
    url(r'^edit_facture/(?P<factureid>[0-9]+)$', views.edit_facture, name='edit-facture'),
8
    url(r'^del_facture/(?P<factureid>[0-9]+)$', views.del_facture, name='del-facture'),
Dalahro's avatar
Dalahro committed
9
    url(r'^facture_pdf/(?P<factureid>[0-9]+)$', views.facture_pdf, name='facture-pdf'),
10
    url(r'^new_facture_pdf/$', views.new_facture_pdf, name='new-facture-pdf'),
11
    url(r'^add_article/$', views.add_article, name='add-article'),
12
    url(r'^edit_article/(?P<articleid>[0-9]+)$', views.edit_article, name='edit-article'),
13
    url(r'^del_article/$', views.del_article, name='del-article'),
14
    url(r'^add_paiement/$', views.add_paiement, name='add-paiement'),
15
    url(r'^edit_paiement/(?P<paiementid>[0-9]+)$', views.edit_paiement, name='edit-paiement'),
16
    url(r'^del_paiement/$', views.del_paiement, name='del-paiement'),
chirac's avatar
chirac committed
17
    url(r'^add_banque/$', views.add_banque, name='add-banque'),
18
    url(r'^edit_banque/(?P<banqueid>[0-9]+)$', views.edit_banque, name='edit-banque'),
chirac's avatar
chirac committed
19
    url(r'^del_banque/$', views.del_banque, name='del-banque'),
20 21 22
    url(r'^index_article/$', views.index_article, name='index-article'),
    url(r'^index_banque/$', views.index_banque, name='index-banque'),
    url(r'^index_paiement/$', views.index_paiement, name='index-paiement'),
23 24 25 26
    url(r'^history/(?P<object>facture)/(?P<id>[0-9]+)$', views.history, name='history'),
    url(r'^history/(?P<object>article)/(?P<id>[0-9]+)$', views.history, name='history'),
    url(r'^history/(?P<object>paiement)/(?P<id>[0-9]+)$', views.history, name='history'),
    url(r'^history/(?P<object>banque)/(?P<id>[0-9]+)$', views.history, name='history'),
27
    url(r'^control/$', views.control, name='control'),
chirac's avatar
chirac committed
28 29 30 31
    url(r'^$', views.index, name='index'),
]