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
09:26 Access the Shell via Django manage.py
11:20 Using os.system CLS to clear the shell screen
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!
/ @veryacademy
Follow us on Facebook
/ veryacademycom-113232103670580
Follow use on Twitter:
/ veryacademy