database - How to migrate Drupal data to Django? -
i want migrate part of drupal 6 site django application, drupal based questions , answers section think work better osqa. i've created question related authentication part of integration , purposes of question can assume drupal users recreated, @ least usernames, in django database. question data migration drupal django.
in drupal have questions nodes of 'question' content type cck fields , answers these questions standard comments. need find best way of moving data osqa in django.
at first thought use south i'm not sure if best fit needs.
for think best approach write django app connects drupal database, query questions corresponding comments , users , insert directly django's database using correct models , django methods.
am on right path? other suggestions?
thanks!
at first thought use south i'm not sure if best fit needs.
no, south not kind of migration. intra-project migrations, , want have it, doesn't here.
"migration" not term need. want export data drupal , import django.
i haven't made in-depth analysis of possible solutions this, asked same thing, define json- or xml-based interchange format transfer, write 1 set of code export data drupal format, import data format django. recommend against using binary format interchange; ability load data text editor verify data , fix things important.
for think best approach write django app connects drupal database, query questions corresponding comments , users , insert directly django's database using correct models , django methods.
if want skip interchange file , in 1 step, don't want write new django app import; that's (imho) overkill. want write django management command within app importing data into, , want use django's support multiple databases model properties (such db_table
, db_column
) using existing database schemas. why recommend interchange file method: wouldn't need reimplement drupal tables in django models.
Comments
Post a Comment