Generate Django database Models from SQL database (MySQL, PostgreSQL, and More)

preview_player
Показать описание
In this video, we look at how we can Generate Django database Models from an SQL database such as MySQL, PostgreSQL, and more. This video uses the inspectdb management command for Django. This command allows us to generate Python Django model classes from an existing SQL database.

LEARN MORE:

FOLLOW ME:

Please Buy me a coffee:

Timestamps:
0:00 Introduction
00:35 Creating the SQL database
02:33 Creating the Django project
06:13 Connecting to the SQL database
08:00 Using PyMySQL
09:13 Generating the Django Database models
12:28 Wrapping Up
#Python Django
Рекомендации по теме
Комментарии
Автор

Thank you very much from Kazakhstan. It helps a lot!

KM-cvmx
Автор

Very simple to follow, thanks alot man!

papanzi
Автор

Awesome video man! That's exactly I was looking for!

devshikamaru
Автор

Simple and straightforward. Thank you!

Svene
Автор

king! thanks bro this was just what i needed

athbuys
Автор

What's up! You are I was looking for, thanks for your help, I appreciated!
On 8:00 best practice is to add PORT too :)

AlexSinyak-hrcd
Автор

Thank you very much from Ghana
one love 😘

owusudavid
Автор

thanks man you helped me alot i also have database in phpmyadmin and i want to use it as class based models thanks a ton brother 🥰

x_y_e_n
Автор

Really good information and video, thank you bro👍🏻.
Kinda really funny how each time you forgot to use python instead of python3😂.

sanoobarshan
Автор

Hi again. How can I create db Models for existing Database without making any changes in it? Models need only for reading Database.

KM-cvmx
Автор

hey, thanks for the video! Do you need to use smth similar with Postgres when you write function Using PyMySQL.install... in settings file?

natalieblinnikova
Автор

Everything works fine until I get to the migrate part. I get this error ValueError: source code string cannot contain null bytes. Anyone knows how to fix it?

jonathannaffrichoux