How could I make a database for my django framework with help of MySQL???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How could I make a database for my django framework with help of MySQL????

How to make data base help of SQL and which application I use to make database

15th Jun 2019, 10:35 AM
Sudipta Mandal
Sudipta Mandal - avatar
1 Answer
+ 5
You probably want to go through the "Create Models" step of this tutorial: https://docs.djangoproject.com/en/1.7/intro/tutorial01/#s-creating-models I don't have much Django experience but from the looks of that, Django can translate your models Python code into SQL tables and migrate them for you. I've used Python's SQLAlchemy with Alembic which does similar automatic conversions to database schema. ASP.net's Code First feature of Entity Framework is similar too.
15th Jun 2019, 3:24 PM
Josh Greig
Josh Greig - avatar