diff --git a/config/settings/base.py b/config/settings/base.py index 143595c64..704f84ac6 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -840,15 +840,6 @@ SITE_ID = 1 -WAGTAIL_RICHTEXT_FIELD_FEATURES = [ - "h2", - "h3", - "bold", - "italic", - "link", - "image", - "embed", -] WAGTAILEMBEDS_RESPONSIVE_HTML = True @@ -881,7 +872,6 @@ "embed", ] -WAGTAILEMBEDS_RESPONSIVE_HTML = True WAGTAIL_MODERATION_ENABLED = False WAGTAILMENUS_FLAT_MENUS_HANDLE_CHOICES = ( ("header_tools", "Menu en haut à droite"), @@ -906,7 +896,18 @@ WAGTAILIMAGES_EXTENSIONS = ["gif", "jpg", "jpeg", "png", "webp", "svg"] +WAGTAILTRANSFER_SOURCES = { + "staging": { + "BASE_URL": os.getenv("WAGTAILTRANSFER_SOURCES_STAGING_URL", ""), + "SECRET_KEY": os.getenv("WAGTAILTRANSFER_SOURCES_STAGING_SECRET", ""), + }, + "production": { + "BASE_URL": os.getenv("WAGTAILTRANSFER_SOURCES_PROD_URL", ""), + "SECRET_KEY": os.getenv("WAGTAILTRANSFER_SOURCES_PROD_SECRET", ""), + }, +} +WAGTAILTRANSFER_SECRET_KEY = os.getenv("WAGTAILTRANSFER_SOURCES_PROD_SECRET", "7cd5de8229be75e1e0c2af8abc2ada7e") # Specific home and purchasing impact page is setted here to avoid queries on every page SIAE_HOME_PAGE = env.str("SIAE_HOME_PAGE", "/accueil-structure/") PURCHASING_IMPACT_PAGE = env.str("PURCHASING_IMPACT_PAGE", "/impact-rse/") diff --git a/config/urls.py b/config/urls.py index f9b2bdfda..0706b17fd 100644 --- a/config/urls.py +++ b/config/urls.py @@ -4,6 +4,7 @@ from wagtail import urls as wagtail_urls from wagtail.admin import urls as wagtailadmin_urls from wagtail.documents import urls as wagtaildocs_urls +from wagtail_transfer import urls as wagtailtransfer_urls from lemarche.utils.admin.admin_site import admin_site @@ -24,6 +25,7 @@ path("blog/", include("blog.urls")), # url docuemnts of glog path("documents/", include(wagtaildocs_urls)), + path("wagtail-transfer/", include(wagtailtransfer_urls)), # urls pages blog path("", include("lemarche.www.pages.urls")), path("", include(wagtail_urls)), diff --git a/poetry.lock b/poetry.lock index 6466f3d90..b3869d9cb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "aiohappyeyeballs" @@ -4268,6 +4268,22 @@ Wagtail = ">=5.2" docs = ["Sphinx (>=6.0)", "myst_parser (>=0.18.1,<1.0)", "pyenchant (>=3.1.1,<4)", "sphinx-autobuild (>=0.6.0)", "sphinx-wagtail-theme (==6.2.0)", "sphinx_copybutton (>=0.5)", "sphinxcontrib-spelling (>=8.0,<9.0)"] testing = ["dj-database-url (>=2.0.0)", "pre-commit (<3.0)"] +[[package]] +name = "wagtail-transfer" +version = "0.9.4" +description = "Content transfer for Wagtail" +optional = false +python-versions = ">=3.8" +files = [ + {file = "wagtail_transfer-0.9.4-py3-none-any.whl", hash = "sha256:8f6cc4b919764795b0418424a3881b09984e2615922107516a0e5625635278e1"}, +] + +[package.dependencies] +wagtail = ">=5.2" + +[package.extras] +docs = ["mkdocs (>=1.0,<1.1)", "mkdocs-material (>=4.6,<4.7)"] + [[package]] name = "wagtailmenus" version = "4.0.1" @@ -4577,4 +4593,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.10.4" -content-hash = "16ce08bcd905bb4aac23fb3a247d32a030d6f6740d224f3487ac5b0a6dda8121" +content-hash = "02ac41e5978cefc28923a85af8c5d9dd3f6ed929be4ea87fb2e2cc840863f8e4" diff --git a/pyproject.toml b/pyproject.toml index 2918be237..5cc198ca1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,7 @@ pillow-heif = "^0.16.0" wagtail-markdown = "^0.12.1" wagtail-localize = "^1.9" unidecode = "^1.3.8" +wagtail-transfer = "^0.9.4" [tool.poetry.group.dev.dependencies] black = "^23.12.1"