gestioCOF/kfet/urls.py

39 lines
1.2 KiB
Python
Raw Normal View History

2016-08-02 10:40:46 +02:00
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')
2016-08-02 10:40:46 +02:00
]