forked from DGNum/gestioCOF
49fdaa6824
- Création d'un template pour nav - Modification des liens entre les pages account - Correction de la balise form dans account_update.html - Ajout d'un nom pour la résolution inversée de account
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
from django.conf.urls import url
|
|
from kfet import views
|
|
from kfet import autocomplete
|
|
|
|
urlpatterns = [
|
|
url(r'^$', views.home,
|
|
name = 'kfet.home'),
|
|
|
|
# -----
|
|
# Account views
|
|
# -----
|
|
|
|
# General
|
|
url(r'^account/$', views.account,
|
|
name = 'kfet.account'),
|
|
url(r'^account/is_validandfree$', views.account_is_validandfree_ajax,
|
|
name = 'kfet.account.is_validandfree.ajax'),
|
|
|
|
# Account - Create
|
|
url(r'^account/new$', views.account_create,
|
|
name = 'kfet.account.create'),
|
|
url(r'^account/new/user/(?P<username>.+)$', views.account_create_ajax,
|
|
name = 'kfet.account.create.fromuser'),
|
|
url(r'^account/new/clipper/(?P<login_clipper>.+)$', views.account_create_ajax,
|
|
name = 'kfet.account.create.fromclipper'),
|
|
url(r'^account/new/empty$', views.account_create_ajax,
|
|
name = 'kfet.account.create.empty'),
|
|
url(r'^autocomplete/account_new$', autocomplete.account_create,
|
|
name = 'kfet.account.create.autocomplete'),
|
|
|
|
# Account - Read
|
|
url(r'^account/(?P<trigramme>.{3})$', views.account_read,
|
|
name = 'kfet.account.read'),
|
|
|
|
# Account - Update
|
|
url(r'^account/(?P<trigramme>.{3})/edit$', views.account_update,
|
|
name = 'kfet.account.update')
|
|
]
|