I don't think it would be easily possible to do this with Django's ORM... but of course that depends on how your database is setup in the first place. Depending on your data-size, you might have better luck just building new Models and migrating your data.
On Thu, Oct 20, 2011 at 8:51 PM, Sebastian Goll <[email protected]>wrote: > On Thu, 20 Oct 2011 15:03:33 -0700 (PDT) > Xangó3007 <[email protected]> wrote: > > > I want to generate models.py file from a mysql database, (inverse > > reengineering). Can you show me how to do it? Thanks. Xangó from Spain > > (django-admin/manage).py "inspectdb" [1] is your friend. > > Sebastian. > > [1] https://docs.djangoproject.com/en/1.3/ref/django-admin/#inspectdb > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

