Skip to content

Instantly share code, notes, and snippets.

View hakanu's full-sized avatar
🎯
Focusing

Hakan hakanu

🎯
Focusing
View GitHub Profile
@hakanu
hakanu / json_ghostify.py
Last active August 29, 2015 14:01
A very simple script which transforms wordpress dump json into ghost-import friendly format
"""A very simple script which transforms wordpress dump into ghost-import
friendly format. This is just a quick script for migration.
This script solves the postgres related problems like:
- RejectionError: current transaction is aborted, commands ignored until end of
transaction block
- js console: POST http://haku.io/ghost/api/v0.1/db/ 503 (Service Unavailable)
http://devdala.files.wordpress.com/2014/05/screen-shot-2014-05-26-at-16-43-08.png
Detailed explanation: