MENU

Fun & Interesting

Django - Multiple Databases | inspectdb command | Database Routers

BugBytes 6,394 7 months ago
Video Not Working? Fix It Now

Django ORM Playlist: https://www.youtube.com/watch?v=EsBqIZmR2Uc&list=PL-2EBeDYMIbQXKsyNweppuFptuogJe2L- ⭐Top resource to learn Python - https://datacamp.pxf.io/kOjKkV ⭐ This video looks at how to use multiple databases in a Django project, and demonstrates the use of the inspectdb command, database routers in Django, and how to synchronize external data from a secondary database to a local database. ☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes 📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀: 00:00 Intro 01:24 Introduction to multiple databases 04:02 Connecting to additional databases with DATABASES setting 05:08 Auto-generating Django models with inspectdb command 11:36 Using data from multiple databases in our apps 14:47 Database Routers in Django 22:16 Synchronising external database data to local database 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮: 📖 Blog: https://bugbytes.io/posts/ 👾 Github: https://github.com/bugbytes-io/ 🐦 Twitter: https://twitter.com/bugbytesio 📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: Multiple Databases: https://docs.djangoproject.com/en/5.1/topics/db/multi-db/ Auto-Generate models with inspectdb: https://docs.djangoproject.com/en/5.1/howto/legacy-databases/#auto-generate-the-models Database Routers in Django: https://docs.djangoproject.com/en/5.1/topics/db/multi-db/#automatic-database-routing #python #django #webdevelopment

Comment