diff --git a/config/settings/base.py b/config/settings/base.py
index e5fbbf1a1..e91da18b5 100644
--- a/config/settings/base.py
+++ b/config/settings/base.py
@@ -205,6 +205,7 @@
"django.contrib.messages.context_processors.messages",
# custom
"lemarche.utils.settings_context_processors.expose_settings",
+ "lemarche.utils.home_page_context_processors.home_page",
],
},
},
@@ -863,6 +864,9 @@
WAGTAIL_FRONTEND_LOGIN_URL = LOGIN_URL
+# Specific home page is setted here to avoid one query on every page
+SIAE_HOME_PAGE = env.str("SIAE_HOME_PAGE", "/accueil-structure/")
+
# Increase throttling to avoid Bad request errors when saving large pages
# https://docs.djangoproject.com/en/4.2/ref/settings/#data-upload-max-number-fields
DATA_UPLOAD_MAX_NUMBER_FIELDS = env.int("DATA_UPLOAD_MAX_NUMBER_FIELDS", 10000)
diff --git a/lemarche/templates/api/home.html b/lemarche/templates/api/home.html
index 43822c965..f7ea9d8f1 100644
--- a/lemarche/templates/api/home.html
+++ b/lemarche/templates/api/home.html
@@ -10,7 +10,7 @@
diff --git a/lemarche/templates/auth/login.html b/lemarche/templates/auth/login.html
index f0e7aab59..126934f9c 100644
--- a/lemarche/templates/auth/login.html
+++ b/lemarche/templates/auth/login.html
@@ -10,7 +10,7 @@
diff --git a/lemarche/templates/auth/password_reset.html b/lemarche/templates/auth/password_reset.html
index bd66e0c74..bd0da1093 100644
--- a/lemarche/templates/auth/password_reset.html
+++ b/lemarche/templates/auth/password_reset.html
@@ -10,7 +10,7 @@
diff --git a/lemarche/templates/auth/password_reset_confirm.html b/lemarche/templates/auth/password_reset_confirm.html
index e24c6792d..c17b8dd8b 100644
--- a/lemarche/templates/auth/password_reset_confirm.html
+++ b/lemarche/templates/auth/password_reset_confirm.html
@@ -10,7 +10,7 @@
diff --git a/lemarche/templates/auth/password_reset_sent.html b/lemarche/templates/auth/password_reset_sent.html
index 7a78efc8e..65a93d2fc 100644
--- a/lemarche/templates/auth/password_reset_sent.html
+++ b/lemarche/templates/auth/password_reset_sent.html
@@ -9,7 +9,7 @@
@@ -37,7 +37,7 @@
vérifiez qu'il n'y a pas d'erreur dans votre e-mail
-
+
Revenir à la page principale
diff --git a/lemarche/templates/auth/signup.html b/lemarche/templates/auth/signup.html
index 3f1d57f38..2ff82f2b9 100644
--- a/lemarche/templates/auth/signup.html
+++ b/lemarche/templates/auth/signup.html
@@ -10,7 +10,7 @@
diff --git a/lemarche/templates/cms/article_list.html b/lemarche/templates/cms/article_list.html
index 28729c341..a713c1cae 100644
--- a/lemarche/templates/cms/article_list.html
+++ b/lemarche/templates/cms/article_list.html
@@ -11,7 +11,7 @@