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

import views

5
urlpatterns = [
6
    url('^$', views.afficher, name='afficher'),
7 8 9 10
    url('^adh/$', views.afficher, name='afficher'),
    url('^adh/(?P<aid>[0-9]+)/$', views.afficher, name='afficher'),
    url('^club/(?P<cid>[0-9]+)/$', views.afficher_club, name='afficher_club'),
    url('^club/$', views.afficher_club, name='afficher_club'),
11
    url('^chgpass/$', views.chgpass, name='chgpass'),
12
    url('^chgpass/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.chgpass, name='chgpass'),
13
    url('^chgpass/(?P<ptype>club)/(?P<uid>[0-9]+)/(?P<next>.*)/$', views.chgpass, name='chgpass'),
14
    url('^chgpass/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.chgpass, name='chgpass'),
15
    url('^chgpass/(?P<ptype>adh)/(?P<uid>[0-9]+)/(?P<next>.*)/$', views.chgpass, name='chgpass'),
16
    url('^redirection/$', views.redirection, name='redirection'),
17
    url('^redirection/(?P<uid>[0-9]+)/$', views.redirection, name='redirection'),
18
    url('^redirection/(?P<uid>[0-9]+)/(?P<generate>True)/(?P<next>.*)/$', views.redirection, name='redirection'),
19
    url('^delete_forward/(?P<uid>[0-9]+)/$', views.deleteforward, name='delete_forward'),
20
    url('^alias/$', views.alias, name='alias'),
21 22
    url('^alias/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.alias, name='alias'),
    url('^alias/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.alias, name='alias'),
23 24 25 26
    url('^delete_alias/(?P<uid>[0-9]+)/(?P<ptype>adh)/(?P<alias_id>[0-9]+)/$',
views.delete_alias, name='delete_alias'),
    url('^delete_alias/(?P<uid>[0-9]+)/(?P<ptype>club)/(?P<alias_id>[0-9]+)/$',
views.delete_alias, name='delete_alias'),
27 28 29 30
    url('^solde/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.solde, name='solde'),
    url('^solde/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.solde, name='solde'),
    url('^vente/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.vente, name='vente'),
    url('^vente/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.vente, name='vente'),
31 32
    url('^adhesion/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.adhesion, name='adhesion'),
    url('^adhesion/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.adhesion, name='adhesion'),
33 34
    url('^comptecrans/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.comptecrans, name='comptecrans'),
    url('^comptecrans/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.comptecrans, name='comptecrans'),
35 36 37 38 39 40
    url('^demenagement/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.demenagement, name='demenagement'),
    url('^demenagement/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.demenagement, name='demenagement'),
    url('^demenagement/(?P<ptype>club)/(?P<uid>[0-9]+)/(?P<confirm>confirm)/$', views.demenagement, name='demenagement'),
    url('^demenagement/(?P<ptype>adh)/(?P<uid>[0-9]+)/(?P<confirm>confirm)/$', views.demenagement, name='demenagement'),
    url('^delete/(?P<ptype>club)/(?P<uid>[0-9]+)/$', views.delete, name='delete'),
    url('^delete/(?P<ptype>adh)/(?P<uid>[0-9]+)/$', views.delete, name='delete'),
41 42 43 44
    url('^(?P<ptype>adh)/create/$', views.create, name='create'),
    url('^(?P<ptype>adh)/create/(?P<confirm>confirm)/$$', views.create, name='create'),
    url('^(?P<ptype>club)/create/$', views.create, name='create'),
    url('^(?P<ptype>club)/create/(?P<confirm>confirm)/$$', views.create, name='create'),
45
    url('^resetpass/(?P<uid>[0-9]+)/$', views.resetpass, name='resetpass'),
46
]