diff --git a/avisstage/urls.py b/avisstage/urls.py index 97647e7..c89c6e2 100644 --- a/avisstage/urls.py +++ b/avisstage/urls.py @@ -2,7 +2,7 @@ from tastypie.api import Api from django.urls import include, path -from . import api, views +from . import api, views, views_search v1_api = Api(api_name="v1") v1_api.register(api.LieuResource()) @@ -56,9 +56,13 @@ urlpatterns = [ 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("recherche/", views_search.recherche, name="recherche"), + path( + "recherche/resultats/", + views_search.recherche_resultats, + name="recherche_resultats", + ), + path("recherche/items/", views_search.stage_items, name="stage_items"), path("feedback/", views.feedback, name="feedback"), path("moderation/", views.statistiques, name="moderation"), path("api/", include(v1_api.urls)),