experiENS/avisstage/urls.py

34 lines
1.4 KiB
Python
Raw Normal View History

2017-04-05 00:23:35 +02:00
from django.conf.urls import include, url
2017-04-16 00:03:04 +02:00
from . import views, api
from tastypie.api import Api
v1_api = Api(api_name='v1')
v1_api.register(api.LieuResource())
2017-04-20 23:04:07 +02:00
v1_api.register(api.StageResource())
v1_api.register(api.AuteurResource())
2017-04-05 00:23:35 +02:00
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^perso/$', views.perso, name='perso'),
2017-05-12 23:29:29 +02:00
url(r'^faq/$', views.faq, name='faq'),
2017-04-13 22:50:00 +02:00
url(r'^stage/nouveau/$', views.manage_stage, name='stage_ajout'),
2017-04-07 03:01:27 +02:00
url(r'^stage/(?P<pk>\w+)/$', views.StageView.as_view(), name='stage'),
2017-04-20 01:53:29 +02:00
url(r'^stage/(?P<pk>\w+)/edit/$', views.manage_stage, name='stage_edit'),
2018-12-28 23:46:24 +01:00
url(r'^stage/(?P<pk>\w+)/publication/$', views.publier_stage,
name='stage_publication'),
url(r'^403/archicubes/$', views.archicubes_interdits,
name='403-archicubes'),
2017-04-07 03:01:27 +02:00
url(r'^lieu/save/$', views.save_lieu, name='lieu_ajout'),
2018-12-27 21:05:59 +01:00
url(r'^profil/show/(?P<username>[\w@]+)/$', views.ProfilView.as_view(),
2017-04-07 03:01:27 +02:00
name='profil'),
url(r'^profil/edit/$', views.ProfilEdit.as_view(), name='profil_edit'),
2017-04-05 00:23:35 +02:00
url(r'^recherche/$', views.recherche, name='recherche'),
2018-12-28 23:46:24 +01:00
url(r'^recherche/resultats/$', views.recherche_resultats,
name='recherche_resultats'),
url(r'^recherche/items/$', views.stage_items, name='stage_items'),
2017-04-05 00:23:35 +02:00
url(r'^feedback/$', views.feedback, name='feedback'),
2017-06-27 23:14:24 +02:00
url(r'^moderation/$', views.statistiques, name='moderation'),
2017-04-16 00:03:04 +02:00
url(r'^api/', include(v1_api.urls)),
2017-04-05 00:23:35 +02:00
]