mezzanine-sync-pages
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 dump_pages.
To write back the previously dumped (and maybe modified) contents, use
the sync_pages management command or the corresponding action in the
admin interface.
Features:
- 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
Installation
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/.
Configuration
-
Add
mezzanine_sync_pagestoINSTALLED_APPS -
Set
MEZZANINE_SYNC_PAGES_DESTINATION_PATHin your settings.py to the path where the content files can be found
Usage
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 inMEZZANINE_SYNC_PAGES_DESTINATION_PATH -
sync_pages: read all files fromMEZZANINE_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.
ChangeLog
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
License
mezzanine-sync-pages is licensed under the MIT license.
Author
Enrico Tröger enrico.troeger@uvena.de
Metadata
Release files for mezzanine-sync-pages 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mezzanine-sync-pages-1.0.1.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mezzanine_sync_pages-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 19.6 kB
Release files / mezzanine-sync-pages-1.0.1.tar.gz
| Download URL | mezzanine-sync-pages-1.0.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
991872f992b6ba71dee58dd3dea52e1f819589bbe08820d0aaeab13f23026eef
|
|
BLAKE2b-256 checksum How to use checksums |
7d8bd5ccaf549ec16423685d155bca43014a2da699a85ad9fab2c2c6b9622c61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
|
Release files / mezzanine_sync_pages-1.0.1-py2.py3-none-any.whl
| Download URL | mezzanine_sync_pages-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b6aeac30bb0e7c6a08b36f0857479a46ef364096e72dd181629a20bd2e034901
|
|
BLAKE2b-256 checksum How to use checksums |
bcebcda352f2e05ad92d54b728da9dc773f8ac51ecaaf507bdcf22dea7397147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
|