Skip to main content Switch to mobile version django-wagtail-blocks-exchange 0.1.1 Copy Wagtail StreamField blocks between pages from the admin page editor
pip install django-wagtail-blocks-exchange Copy PIP instructions
Copy StreamField blocks between pages from the Wagtail editor — pick target pages and which StreamFields receive the block, without leaving the admin.
Portable Django package · MIT · by Aymane Nahji
Reuse a hero, testimonial, or promo block across the site without copy-paste in JSON or duplicate drafts by hand. Copy to pages appears on every block in every StreamField on the page editor — no single body field baked in.
Zero config — add the app; buttons show up when StreamFields render.
Smart targets — only pages you can edit that already support the block type on at least one StreamField.
Multi-select — many pages and many fields in one action; block is prepended at the top of each chosen field (new draft revision).
Staff-only API — CSRF-protected JSON and form endpoints under the admin prefix.
Restrict which field names get server-side copy UI:
WAGTAIL_BLOCKS_EXCHANGE_STREAM_FIELDS = ["body", "footer"] Legacy WAGTAIL_BLOCKS_EXCHANGE_BODY_FIELD is treated as a one-item allowlist. When unset, all StreamFields on the model are eligible.
Edit a page and open a block in any StreamField.
Click Copy to pages.
Choose target page(s), then the StreamField(s) on each page that should receive the block.
Each target saves a draft revision — publish when you are ready.
Deep dive (security, i18n, copying rules): wagtail_blocks_exchange/README.md.
Under the Wagtail admin prefix at blocks-exchange/:
eligible-pages/ accepts source_page_id, block_type, and optional source_stream_field_name. Responses include stream_fields per page.
Source and target page models must share the same block type key in their stream definitions. The user needs edit permission on the source and every target.
pip install -e ".[dev]" PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests_project.settings python -m django test wagtail_blocks_exchange Uses tests_project/ with BlocksExchangeTestPage.
Released: Nov 29, 2026
Author: Aymane Nahji
MIT View SPDX License List
cms django streamfield wagtail
Development Status 4 - Beta
Environment Web Environment
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Release files for django-wagtail-blocks-exchange 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 105.7 kB
Release files / django_wagtail_blocks_exchange-0.1.1.tar.gz
Security for django-wagtail-blocks-exchange 0.1.1
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











