Re: Database Transaction Migration
> I haven't used South for complex data migrations, but I think it's
> most useful just after (or simultaneously to) doing the schema
<snip>
> of course, if both old and new applications are written with Django
> and handle data via the Django ORM, then you can do things like:
>
>
> import oldapp.models
> import newapp.models
>
> for oldrec in oldapp.models.MyModel.objects.all():
> newapp.models.MyNewModel.create (newfield=oldrec.oldfield,......)
>
Sorry, this mail was sent by mistake.
And thank you Javier, I think this is the only solution now.
--
Sandeep Kaur
E-Mail: mkaurkhalsa@gmail.com
Blog: sandymadaan.wordpress.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home