Import your blog data¶
If you need to migrate a blog system to Puput we provide you a various tools to import your data.
Prerequisites¶
All importers need the lxml Python package, which has the prerequisites libxml2 and libxslt.
To install on Ubuntu:
sudo apt-get install libxml2-dev libxslt-dev
To install on CentOS or Red Hat:
sudo yum install libxml2-devel libxml++-devel libxslt-devel
Zinnia¶
Install zinnia-to-puput package and its dependencies
pip install zinnia-to-puput
Add zinnia2puput to your
INSTALLED_APPS
insettings.py
file.Run the management command:
python manage.py zinnia2puput
You can optionally pass the slug and the title of the blog to the importer:
python manage.py zinnia2puput --slug=blog --title="Puput blog"
Wordpress¶
Install wordpress-to-puput package and its dependencies
pip install wordpress-to-puput
Add
wordpress2puput
to yourINSTALLED_APPS
insettings.py
file.Run the management command:
python manage.py wp2puput path_to_wordpress_export.xml
You can optionally pass the slug and the title of the blog to the importer:
python manage.py wp2puput path_to_wordpress_export.xml --slug=blog --title="Puput blog"
Blogger¶
Install blogger2puput package and its dependencies
pip install blogger2puput
Add
blogger2puput
to yourINSTALLED_APPS
insettings.py
file.Run the management command:
python manage.py blogger2puput --blogger_blog_id=Your BlogID --blogger_api_key=Your APIKey
You can optionally pass the slug and the title of the blog to the importer:
python manage.py blogger2puput --slug=blog --title="Puput blog" --blogger_blog_id=Your BlogID --blogger_api_key=Your APIKey