Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL schema to Django model?

Is there a handy way to translate a MySQL schema to a Django model?

like image 389
Ethan Whitt Avatar asked Feb 13 '11 11:02

Ethan Whitt


People also ask

Can I use MySQL with Django?

Django supports MySQL 5.7 and higher.


1 Answers

this command will do exactly what it says on the tin

python manage.py inspectdb
like image 66
mjallday Avatar answered Oct 30 '22 19:10

mjallday