2021-02-07 18:23:24 +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
|
|
|
|
|
2021-02-07 23:15:47 +01:00
|
|
|
v1_api = Api(api_name="v1")
|
2017-04-16 00:03:04 +02:00
|
|
|
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-02-07 18:23:24 +01:00
|
|
|
app_name = "avisstage"
|
2017-04-05 00:23:35 +02:00
|
|
|
urlpatterns = [
|
2021-02-07 23:15:47 +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, name="stage_publication"),
|
|
|
|
path("403/archicubes/", views.archicubes_interdits, name="403-archicubes"),
|
|
|
|
path("lieu/save/", views.save_lieu, name="lieu_ajout"),
|
|
|
|
path("profil/show/<str:username>/", views.ProfilView.as_view(), name="profil"),
|
|
|
|
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",
|
|
|
|
),
|
|
|
|
path("recherche/", views.recherche, name="recherche"),
|
|
|
|
path("recherche/resultats/", views.recherche_resultats, name="recherche_resultats"),
|
|
|
|
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
|
|
|
]
|