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

Поділитися
Вставка
  • Опубліковано 14 лип 2024
  • 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:
    docs.djangoproject.com/en/4.0...
    FOLLOW ME:
    github.com/jod35
    / jod35__
    Please Buy me a coffee:
    www.buymeacoffee.com/jod35
    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
  • Наука та технологія

КОМЕНТАРІ • 34

  • @Svene7
    @Svene7 Місяць тому

    Simple and straightforward. Thank you!

  • @AlexSinyak-hr3cd
    @AlexSinyak-hr3cd 4 місяці тому

    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 :)

  • @owusudavid7840
    @owusudavid7840 Рік тому

    Thank you very much from Ghana
    one love 😘

  • @lev0x79
    @lev0x79 Рік тому +2

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

  • @VishakhaPatil-rf5os
    @VishakhaPatil-rf5os 3 місяці тому

    thanks. saved a lot of time for me.

  • @papanzi
    @papanzi Рік тому +2

    Very simple to follow, thanks alot man!

  • @czar9191
    @czar9191 Рік тому

    it works perfectly! thank you!

  • @athbuys3588
    @athbuys3588 Рік тому

    king! thanks bro this was just what i needed

  • @s_houdini_
    @s_houdini_ 10 місяців тому

    Thank you for clean explanation...

  • @x_y_e_n
    @x_y_e_n Рік тому

    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 🥰

  • @asgeralia8802
    @asgeralia8802 Рік тому +1

    Superb

  • @johnindra9335
    @johnindra9335 Рік тому +1

    Awesome

  • @user-st6fy2wu5t
    @user-st6fy2wu5t Рік тому

    THANK U BRO!!!!!

  • @sanoobarshan
    @sanoobarshan Рік тому

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

    • @SsaliJonathan
      @SsaliJonathan  Рік тому

      Yeah, I always get lost in the Linux way of doing stuff. Thanks for watching.😂

  • @natalieblinnikova3971
    @natalieblinnikova3971 Рік тому

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

    • @SsaliJonathan
      @SsaliJonathan  Рік тому +1

      You do not need to as long as you have psycopg installed, it works automatically.

  • @alaaomaier4256
    @alaaomaier4256 8 місяців тому

    python Django good techer

  • @jonathannaffrichoux5399
    @jonathannaffrichoux5399 8 місяців тому

    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?

    • @SsaliJonathan
      @SsaliJonathan  8 місяців тому

      Please point to the exact timestamp in the video, I would love to help