Skip to main content

Django CMS Plugin Importer/Exporter - Plugie

PyPI version License: MIT wheel

This project extends the functionality of the Django CMS framework by providing a way to import and export plugins from one page to another, across different projects, or even between different Django CMS installations. This is useful when your page exists in a development environment and you want to move it to a production environment, or when you have multiple CMS that uses the same content.

Contributing

If you would like to contribute to this project, please read our CONTRIBUTING file for guidelines.

Features

  • Export / import plugins into / from a JSON file
  • Add custom serializers / deserializers to export /import custom types used in your plugins

Requirements

See the Python/Django/Django CMS for the current release version in the setup file or in our documentation.

Installation

  1. Install the package using pip:
pip install djangocms_plugie
  1. Add djangocms_plugie to your INSTALLED_APPS:
INSTALLED_APPS = [
    ...
    'djangocms_plugie',
    ...
]
  1. Add the following to your urls.py:
urlpatterns = [
    ...
    path('admin/', include('djangocms_plugie.urls')),
    ...
]
  1. Setup 'plugie' from your terminal with the following command:
plugie <project_dir>

This will create a 'plugie_config.json' file and a 'plugie/custom_methods' folder in your project directory, including some default methods.

  • The 'plugie_config.py' file is where you can customize some functionalities of the app.
  • The 'custom_methods' folder is where you can add custom methods that can be used in your custom serializers and deserializers. You also get a 'default.py' file with some default methods that you can use as a reference or that you might want to override.

You can find more information about this in the documentation.

Using Plugie

Exporting Plugins

How to Export Plugins

  1. Go to the Django CMS admin and select the page where you want to export the plugins.

  2. Open the structure sidebar and click the hamburger icon on the right side of the placeholder or plugin tree that you want to export.

  3. Click the 'Export plugins' option.

  4. Check the downloaded JSON file to see the exported plugins.

Importing Plugins

How to Import Plugins

  1. Go to the page where you want to import the plugins.

  2. Open the structure sidebar and click the hamburger icon on the right side of the placeholder or plugin tree where you want to import the plugins.

  3. Click the 'Import plugins' option.

  4. A modal will open where you can select the JSON file previously exported.

  5. Click the 'Import' button.

  6. The plugins will be imported to the selected placeholder or plugin tree.

Documentation

The documentation is available here.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Brought to you by

Formlabs logo

Release files for djangocms-plugie 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangocms-plugie 1.0.1
File Size Uploaded
djangocms_plugie-1.0.1.tar.gz 31.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djangocms-plugie 1.0.1
File Interpreter ABI Platform
djangocms_plugie-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 76.3 kB

Release files / djangocms_plugie-1.0.1.tar.gz

Download URL djangocms_plugie-1.0.1.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7f71c25c300bf395649851a3d5b30ee4bd81f7d14fdc8a0da10221e90fc1a85
BLAKE2b-256 checksum
How to use checksums
ce7e79af5c3b05c9618c6aefded4f35f747b675734c6d727e9992677a47ed009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / djangocms_plugie-1.0.1-py3-none-any.whl

Download URL djangocms_plugie-1.0.1-py3-none-any.whl
Size 45.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9dff6f2b831da493c017d9f000e37795c08b746ad86fc025dbb75b654b8c7e8
BLAKE2b-256 checksum
How to use checksums
e17a1f7d4cb38c0127432316316b36ca8a1b56e3764045af03587c15472231ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page