Is there a handy way to translate a MySQL schema to a Django model?
1 Answer
this command will do exactly what it says on the tin
python manage.py inspectdb
2 Comments
Ethan Whitt
Perfect! How did I ever not see this before? Thanks!
Filip Dupanović
Wow! I somehow cleverly assumed this just dumped the defined models for a Django instance. Now, if it was called
introspectdb? RTFCH, noted :D!