Django app to synchronize Mezzanine page content to and from files
mezzanine-sync-pages let you synchronize the contents of pages in Mezzanine. This comes in handy if you want to manage your page contents as plain text/HTML files rather than in a web editor and if you want to manage your content in a version control system like Git.
It does synchronize only the page contents and not any metadata (like title, slug, publish date, ...).
To create an initial dump of all existing pages in Mezzanine you can
use the management command
To write back the previously dumped (and maybe modified) contents, use
sync_pages management command or the corresponding action in the
- Dump contents of all pages in Mezzanine as files
- Write back page contents to Mezzanine
- Detect unmodified content and skip those pages
- Display a diff on modified content after updating
The easiest method is to install directly from pypi using pip:
pip install mezzanine-sync-pages
If you prefer, you can download mezzanine-sync-pages from https://github.com/eht16/mezzanine-sync-pages and install it directly from source:
python setup.py install
Get the Source
The source code is available at https://github.com/eht16/mezzanine-sync-pages/.
MEZZANINE_SYNC_PAGES_DESTINATION_PATHin your settings.py to the path where the content files can be found
After activating the app, two new management commands are added:
dump_pages: create an initial dump of all pages in Mezzanine and write the corresponding files in
sync_pages: read all files from
MEZZANINE_SYNC_PAGES_DESTINATION_PATHand write their content to Mezzanine
Additionally, a new action in the Mezzanine admin interface is added to trigger the synchronization of the pages to Mezzanine.
1.0.1 / 2019-06-23
- Add trailing new line only if content is not empty (fixes crashing on empty pages when dumping)
1.0.0 / 2019-06-01
- Initial release
mezzanine-sync-pages is licensed under the MIT license.
Enrico Tröger email@example.com
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size mezzanine_sync_pages-1.0.1-py2.py3-none-any.whl (11.4 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size mezzanine-sync-pages-1.0.1.tar.gz (8.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for mezzanine_sync_pages-1.0.1-py2.py3-none-any.whl
Hashes for mezzanine-sync-pages-1.0.1.tar.gz