Drupal to WordPress migration tool in Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
includes
sql-sample Improved commandline status feedback May 23, 2015
.gitignore
LICENSE.txt
README.md Include support for Drupal 7. Jan 25, 2017
__init__.py
d2w.py
database_interface.py
deploy.py
display_cli.py
migrate.py Streamlined migration process. Feb 15, 2016
prepare.py
requirements.txt
settings.template.yml

README.md

pyD2W

A Drupal to WordPress database migration tool using Python by Another Cup of Coffee Limited

For more information, please see the Drupal to WordPress Migration Tool Project Homepage

This is my in-house tool for performing the bulk of the migration from Drupal to WordPress. It requires an SQL script file. A sample is included but you will need to edit it to match your own migration requirements. (See below.)

If you're not sure how to make the appropriate changes, feel free to contact me and I'll be happy to help you specify the work.

Installation and use

  1. You will need to install the following Python modules:

    • MySQLdb for accessing MySQL databases
    • prettytable for displaying results in a table format
    • phpserialize for unserializing Drupal fields
  2. Edit the included sql sample files in the sql-sample directory to suit your migration requirements. At a minimum, you will need the migration script itself (see the sample migration_standard. sql file). For more information on the migration file, see Drupal to Wordpress Migration Explained

  3. Run the utility using the help flag to view the available commands: python d2w.py -h

Notes

  1. If you are migrating from Drupal 7, replace database_interface.py and prepare.py with the versions supplied in the includes folder.

  2. Useful supporting script files are a dump of a pre-configured (but empty) WordPress installation and a dump of your Drupal database in a clean state before any migration attempts. Since migrations can often take several passes of fine-tuning, it can help to reset your databases.

CAUTION

Make a backup of both your Drupal and WordPress databases before running this tool. USE IS ENTIRELY AT YOUR OWN RISK.

First released 2015-02-03 by Anthony Lopez-Vito of Another Cup of Coffee Limited http://anothercoffee.net

All code is released under The MIT License. Please see LICENSE.txt.

Credits