14
nov

Auto Generate Django Models

Posted by Rob Edwards

I was trawling through the Django docs and found this page on auto generating Django models from old databases: "Django comes with a utility called inspectdb that can create models by introspecting an existing database".

Though it does say: "This feature is meant as a shortcut, not as definitive model generation".

Happy days, we've got a project coming up that this is perfect for. For more info see the docs.