On Fri, May 8, 2009 at 9:55 AM, consiglieri <apelsi...@gmail.com> wrote:
> > I have a running perl/cgi app in conjunction with mysql which works > fine. > > For various reasons i want to move to either django or RoR. I've > pretty much decided to go with Django, however i'm wondering about one > thing. > > Ideally i would like to use the mysql database that i have, does > Django provide som good method for either converting a database for > use by Django? How have other people done when moving to Django. > Yes, Django has an 'inspectdb' command that you can use, see: http://docs.djangoproject.com/en/dev/ref/django-admin/#inspectdb As the doc notes, you'll want to examine the models output by this and possibly adjust some things, but it provides a good easy start for mapping your existing database tables back to Django models. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---