Skip to main content

Import WordPress images into Wagtail

Project description

Wagtail WordPress Image Importer

A Django management command to import images from a WordPress XML export into Wagtail.

Installation

pip install wagtail-wordpress-image-importer

Configuration

Add to your INSTALLED_APPS in Django settings:

INSTALLED_APPS = [
    ...
    'wagtail_wordpress_image_importer',
    ...
]

Usage

Export your WordPress content as XML from WordPress admin (Tools > Export).

Then run:

python manage.py import_wordpress_images /path/to/your/wordpress-export.xml

Options

  • --delete-existing: Delete all existing Wagtail images before importing
  • --debug: Show detailed debug information during import

License

MIT License

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

wagtail_wordpress_image_importer-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file wagtail_wordpress_image_importer-0.1.0.tar.gz.

File metadata

File hashes

Hashes for wagtail_wordpress_image_importer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a15d361cbc1008862d2c5a957c9dc2f3a0c754c72b829b7aa803dda533d3ca6f
MD5 6d39016f9404c7e91f7a32b0efdbb013
BLAKE2b-256 ea3511680ffb7515945a409fe9be4215431a2b5266b1a2220b8859b5654c7c84

See more details on using hashes here.

File details

Details for the file wagtail_wordpress_image_importer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_wordpress_image_importer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d69a0aa88709f219d6ab357e9a742125dce642d60553c4fbede000e616f58c9
MD5 e3716ecbe512e4e93c7ed2136bbe6154
BLAKE2b-256 8429390d2268b7926cffa31ed319684fb1cb462e26e51535371a661e9ecbb286

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