I'm planning on migrating an existing (django.contrib) comments setup into a custom comment app, and I'm wondering if anyone's got any experience to impart in this regard. I have done cross-app data migration before, and cocked it up horribly. These are the steps I'm considering; if anyone's got suggestions, or sees anything wrong here, for god's sake speak up please.
1. Make my custom comment app, then copy all models, forms, peripheral models, comment-related signals, etc etc, into it. Leave existing stuff in place. Add the appropriate get_model() and get_form() functions to __init__.py. Augment new models as necessary. Run syncdb to make tables for the new app. 2. Add COMMENTS_APP to settings.py, pointing to my new app. Alter the existing django_content_type table to also point to this new app. (I see the existing app_label is just 'comments', if I call my custom app 'comments' too, can I get away with not changing anything in this table?). 3. Go into the shell and copy data from existing comment instances (I've also got Commenter and CommentNotification models) into the new app models. 4. Pull changes onto production server, run syncdb, repeat steps 2 and 3 above, restart. 5. Delete old code and old db tables from both development and production environments. 6. Golden. Does this seem right? I'm particularly worried about problems that might arise from having the existing code pointing to a new app. Is there anything besides django_content_type that needs to know what's changed? If this works I hope it will be useful as a roadmap to others equally frightened of databases. Thanks, Eric --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---