2016-08-02 10:40:46 +02:00
|
|
|
from django.conf.urls import url
|
|
|
|
from kfet import views
|
|
|
|
from kfet import autocomplete
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-08-03 04:38:54 +02:00
|
|
|
url(r'^$', views.home,
|
|
|
|
name = 'kfet.home'),
|
|
|
|
|
|
|
|
# -----
|
|
|
|
# Account views
|
|
|
|
# -----
|
|
|
|
|
|
|
|
# General
|
2016-08-03 06:33:27 +02:00
|
|
|
url(r'^account/$', views.account,
|
|
|
|
name = 'kfet.account'),
|
2016-08-03 04:38:54 +02:00
|
|
|
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
|
|
|
]
|