Migrate Data from Django 1.4 to Django 1.8

47 views
Skip to first unread message

Mayur Tanna

unread,
Feb 22, 2016, 9:37:09 AM2/22/16
to Django users

Hi,


We have migrated the Django 1.4 application to Django 1.8 successfully. The Django 1.4 version of applicaiton is still in use in production until we go live with Django 1.8. The problem is that lots of data have been updated on production server which needs to be migrated to 1.8 version on local enviroment. Is there any way I can migrate the data from database of 1.4 to 1.8 except manually doing that? Note that the model/database columns are different in both the version.

Can anybody suggest some good options ?


Thanks.

Andreas Kuhne

unread,
Feb 22, 2016, 10:32:12 AM2/22/16
to django...@googlegroups.com
Hi,

I did that a while back, I wrote my own SQL migration script that we tested with the production database in development. I think that would be the only way. Django doesn't know of the changes that you have made in your database models. However if you had started with the production database and then migrated up to the new layout in development, then that would have been possible.

Regards,

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b9837af1-5ccd-46b1-9a80-b28712922923%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages