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 <sebastian.g...@gmx.de>wrote:

> On Thu, 20 Oct 2011 15:03:33 -0700 (PDT)
> Xangó3007 <xrocavila...@gmail.com> 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 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.
>
>

-- 
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.

Reply via email to