experiENS/avisstage/urls.py

52 lines
2.3 KiB
Python
Raw Normal View History

2021-01-17 12:14:11 +01:00
from django.urls import include, path
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
2021-01-17 12:14:11 +01:00
app_name = "avisstage"
2017-04-05 00:23:35 +02:00
urlpatterns = [
2021-01-17 12:14:11 +01:00
path('', views.index, name='index'),
path('perso/', views.perso, name='perso'),
path('faq/', views.faq, name='faq'),
path('stage/nouveau/', views.manage_stage, name='stage_ajout'),
path('stage/<int:pk>/', views.StageView.as_view(), name='stage'),
path('stage/<int:pk>/edit/', views.manage_stage, name='stage_edit'),
path('stage/<int:pk>/publication/', views.publier_stage,
2018-12-28 23:46:24 +01:00
name='stage_publication'),
2021-01-17 12:14:11 +01:00
path('403/archicubes/', views.archicubes_interdits,
2018-12-28 23:46:24 +01:00
name='403-archicubes'),
2017-04-07 03:01:27 +02:00
2021-01-17 12:14:11 +01:00
path('lieu/save/', views.save_lieu, name='lieu_ajout'),
path('profil/show/<str:username>/', views.ProfilView.as_view(),
2017-04-07 03:01:27 +02:00
name='profil'),
2021-01-17 12:14:11 +01:00
path('profil/edit/', views.ProfilEdit.as_view(), name='profil_edit'),
path('profil/parametres/', views.MesParametres.as_view(), name='parametres'),
path('profil/emails/<str:email>/aconfirmer/',
views.AdresseAConfirmer.as_view(), name="emails_aconfirmer"),
path('profil/emails/<str:email>/supprime/', views.SupprimeAdresse.as_view(),
name="emails_supprime"),
path('profil/emails/<str:email>/reconfirme/',
views.ReConfirmeAdresse.as_view(),
name="emails_reconfirme"),
path('profil/emails/<str:email>/principal/',
views.RendAdressePrincipale.as_view(), name="emails_principal"),
path('profil/emails/confirme/<str:key>/', views.ConfirmeAdresse.as_view(),
name="emails_confirme"),
path('profil/mdp/demande/',
views.EnvoieLienMotDePasse.as_view(), name="mdp_demande"),
path('profil/mdp/<str:uidb64>/<str:token>/',
views.DefinirMotDePasse.as_view(), name="mdp_edit"),
2021-01-17 12:14:11 +01:00
path('recherche/', views.recherche, name='recherche'),
path('recherche/resultats/', views.recherche_resultats,
2018-12-28 23:46:24 +01:00
name='recherche_resultats'),
2021-01-17 12:14:11 +01:00
path('recherche/items/', views.stage_items, name='stage_items'),
path('feedback/', views.feedback, name='feedback'),
path('moderation/', views.statistiques, name='moderation'),
path('api/', include(v1_api.urls)),
2017-04-05 00:23:35 +02:00
]