Learn Django - Intro to Django Databases - Basic Queries and functions from the Shell

preview_player
Показать описание
Here I take you through the first steps into building queries with Django. We look at using to the shell to run and test administrative commands to administrate our Django database. This will provide us a base to move into more advanced queries.

00:00 Introduction
01:10 Tutorial Coverage
02:46 Python Shell Quick Intro
03:45: (New users) Start a new Django Project - Install Virtual Environment
07:17 SQLite & Why to use the Shell to practice/run Django Queries
13:38 Building a simple database model
===============
Database Queries
===============
14:37 Display all data from a table/model
23:55 Adding data to a database table/model
26:19 Object to string representation
30:00 Building a custom Model Manager
35:58 Query and return a single item
37:55 Query filter()
39:34 Chain filters()
40:28 Exclude()
42:00 Order_by()
44:00 Delete single items
45:40 Using Django Web DB Administration feature

SUBSCRIBE to get more free tutorials, courses and code snippets!

Follow us on Facebook

Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

I enjoyed this tutorial. Thanks a lot.

jeffsawma
Автор

Thank you so much for this video
my suggestion:
It will be better to put this video after the first video, and after that, who see the next videos will know what he's doing in database.

Note: all what you mentioned still work with Django 4.0.4 (last version)

Anyway, thanks so much for your time

TechWithSabri
Автор

19:10 No worries, as someone new to field I need to know these TraceBacks!

-kaito
Автор

How do you get that fancy terminal shell? Mine doesn't display line numbering and the colors.

av
Автор

Sweet 😊... Welcome back. But I hope you're going to do deployment at the end of this series.

paborlouise
Автор

silly question.. is there a way to interact with the database with sql commends thank you

davidrosen
Автор

Whaaa...👌. Can start pytest with Django ?

KrishnaManohar