Skip to main content

Export/import django-cms plugins across applications.

Reason this release was yanked:

importer v1 is missing

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms_plugie-1.0.0.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_plugie-1.0.0-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_plugie-1.0.0.tar.gz.

File metadata

  • Download URL: djangocms_plugie-1.0.0.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for djangocms_plugie-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e83447164ce8365011bb7b0807d8bf193c65b29dfd14078ef90e970dc5953ba6
MD5 2b238017ca92aea575f952a68570b775
BLAKE2b-256 a5d54b5456ed148f24faed36776a7b7d401437f1ceadd5c5089057c7f3bbf314

See more details on using hashes here.

File details

Details for the file djangocms_plugie-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_plugie-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cac0b19aaf1917396b8e152f199abb421b7324f6cbbfd137fe80e390f06b169b
MD5 f9aa2b3e4d07d95d57fc85b753e43a34
BLAKE2b-256 ba7d59c5750716c69e8512fbc3eac65066b19f8f8e6d8f7ea4607ef67d944d27

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page