Database Model Queries  | Django (3.0)  Crash Course Tutorials (pt 7)

Database Model Queries | Django (3.0) Crash Course Tutorials (pt 7)

Dennis Ivy

4 года назад

159,595 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@fazliddinfayziev-qg1vg
@fazliddinfayziev-qg1vg - 30.11.2023 14:41

Hi everybody, guys where can I find the source code. I am Query cheatsheet. Can you help me please ?

Ответить
@pinakisingharoy202
@pinakisingharoy202 - 28.10.2023 11:25

your given Source code link is not opening.

Ответить
@tokhenz
@tokhenz - 14.10.2023 15:50

Hi, are you going to address the complaints regarding the missing source code?

Ответить
@user-ej7qx8gl7u
@user-ej7qx8gl7u - 07.08.2023 02:50

thanks Mr dennis

Ответить
@othmanechalal2401
@othmanechalal2401 - 23.07.2023 15:29

Thank you for everything dude! But we can't have access to the source code anymore plz fix it

Ответить
@dorakadri476
@dorakadri476 - 12.05.2023 23:19

the code source is missing :(

Ответить
@abhi-rw5lt
@abhi-rw5lt - 22.03.2023 18:28

sad, link is not working, i cant access the source code :(

Ответить
@naheanmahamud6391
@naheanmahamud6391 - 18.02.2023 21:04

Your Source code + Live Demo Link Can't Work Please Check this problem

Ответить
@iawds75
@iawds75 - 15.12.2022 22:33

Hey Dennis just wanted to let you know that your source code link inst working...

Ответить
@ettitaiwo1642
@ettitaiwo1642 - 08.12.2022 00:15

hi
the source code link isn't working

Ответить
@lemorello6179
@lemorello6179 - 02.12.2022 16:49

Application error heroku

Ответить
@JhonJairoMoralesRodriguez
@JhonJairoMoralesRodriguez - 14.11.2022 21:10

Buenísimo gracias

Ответить
@dharshinim266
@dharshinim266 - 13.10.2022 20:12

'Customer' object has no attribute 'order_set' this error arrives when I test.Can someone please help me with that

Ответить
@eleighanneaveno655
@eleighanneaveno655 - 12.09.2022 09:16

Thank you for these videos. I love this content so much!

Ответить
@bardich7767
@bardich7767 - 31.08.2022 13:06

Hi Dennis, thanks a lot for your effort and you're really a good instructor, good luck

Ответить
@user1491
@user1491 - 30.08.2022 16:35

Hello, I'm a little bit late ... but ...
why does the query : product = Product.objects.filter(tags__name="Sports") --> <QuerySet [<Product: Ball>]>
works, but the query: item = Tag.objects.filter(tags__name="Ball")
does not? Product and Tag are in a many to many relationship, so i thought, it wold work in both directions.

>>> from accounts.models import *
>>> item = Tag.objects.all()
>>> print(item)
<QuerySet [<Tag: Sports>, <Tag: Summer>, <Tag: Kitchen>]>
>>> product = Product.objects.all()
>>> print(product)
<QuerySet [<Product: BBQ Grill>, <Product: Dishes>, <Product: Ball>]>
>>> product = Product.objects.filter(tags__name="Sports")
>>> print(product)
<QuerySet [<Product: Ball>]>
>>> item = Tag.objects.filter(tags__name="Ball")
Traceback (most recent call last):
File "<console>", line 1, in <module>....snipp....

django.core.exceptions.FieldError: Cannot resolve keyword 'tags' into field. Choices are: id, name, product
>>>
Thank you ...

Ответить
@saifularomax7512
@saifularomax7512 - 03.06.2022 05:56

Please write the fucking queries in the files instead of the fucking shell. What is the use of shell in practical situations?

Ответить
@amanojha924
@amanojha924 - 27.05.2022 04:02

Can you make one for uploading excel file and how to CRUD it in db

Ответить
@sajawalsheraz6903
@sajawalsheraz6903 - 10.04.2022 13:27

Hey i have send you an email from you website about a problem please help me there.

Ответить
@HydoSkills
@HydoSkills - 25.03.2022 15:28

Me a 35 yo male: haha peter piper initial are P, P.. Good tutorial series my man!

Ответить
@saidtahmazov9197
@saidtahmazov9197 - 20.02.2022 22:02

Your series are just awesome, man! I do my best to support you with likes, subscruption, recommendations etc.

Ответить
@nakhan69
@nakhan69 - 08.01.2022 08:56

K Ken I totally agree with you, I am a beginner and I find it very useful. Thank you Dennis

Ответить
@venkatrao235
@venkatrao235 - 23.12.2021 16:24

nice explanation sir tq ,query for students having equal marks how can give ranks by date of birth

Ответить
@hyperxelon2838
@hyperxelon2838 - 18.10.2021 05:29

Your videos are awesome easy to understand

Ответить
@jaitungodhani2334
@jaitungodhani2334 - 06.10.2021 09:30

'Customer' object has no attribute 'order_set' this error arrives when i test

Ответить
@jaitungodhani2334
@jaitungodhani2334 - 06.10.2021 09:22

In this, order_set method not work plz you have any solutions tell me

Ответить
@DanielLeachTen
@DanielLeachTen - 26.09.2021 11:34

Thank you so much!

Ответить
@ajaykjoshi
@ajaykjoshi - 19.06.2021 05:06

From 11.01-11.11 instead of using multiple newline you can use ctrl+l that can throw all your terminal codes to above unseen area. Thank you.

Ответить
@kevincampbell256
@kevincampbell256 - 26.04.2021 02:16

Thanks Dennis, I really appreciate this series you created.

Ответить
@elnur_huseynov
@elnur_huseynov - 24.04.2021 14:07

WARNINGS:
accounts.Customer: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the AccountsConfig.default_auto_field attribute to point to a subclass of AutoField,
e.g. 'django.db.models.BigAutoField'.
accounts.Order: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the AccountsConfig.default_auto_field attribute to point to a subclass of AutoField,
e.g. 'django.db.models.BigAutoField'.
accounts.Product: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the AccountsConfig.default_auto_field attribute to point to a subclass of AutoField,
e.g. 'django.db.models.BigAutoField'.
accounts.Tag: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the AccountsConfig.default_auto_field attribute to point to a subclass of AutoField,
e.g. 'django.db.models.BigAutoField'.

I'm getting this error can you help please

Ответить
@khaki714
@khaki714 - 02.04.2021 15:27

Well done. Nice series.

Ответить
@Nemosaur
@Nemosaur - 03.03.2021 18:47

Super helpful!
Thanks so much!

Ответить
@mursalrabb6093
@mursalrabb6093 - 22.02.2021 21:57

Definitely the best series on django @YT

Ответить
@dawid_dahl
@dawid_dahl - 22.02.2021 13:30

Thank you so much!

(Great little cheat sheet, too. Saved!)

Ответить
@scattyrot
@scattyrot - 29.01.2021 17:38

can we use default dict for allOrders?

Ответить
@joaojesus8861
@joaojesus8861 - 26.01.2021 05:03

Dennis I cannot stress how helpful and clear your work is. Other channels don’t explain properly or complicate it too much when the point is to introduce simple topics. Im sure you are going a long way ;) Wish you all the best mate!

Ответить
@fasttrack4404
@fasttrack4404 - 24.01.2021 18:12

how can i get all posts created by a user? via get_context_data() or get_queryset()
i am new to your channel

Ответить
@akramnarejo6221
@akramnarejo6221 - 23.01.2021 21:40

guess what? today you made me realize that it is the teacher who makes an student interested in learning. believe me constantly I am watching and learning ur tuts and did not get bore yet. truly love you man.

Ответить
@muhammadsameer9647
@muhammadsameer9647 - 19.01.2021 06:22

Man the way you teach is awesome.

Ответить
@barscankurt4854
@barscankurt4854 - 08.01.2021 22:54

So far so good. This tutorial is really detailed, organized and understandable. If you make all of your tutorials like this eventually people gonna discover this channel. You can be the next "code with mosh".

Ответить
@Sammy25665
@Sammy25665 - 03.01.2021 20:04

I'm gonna write your name in my Resume

Ответить
@anishamalblanco7386
@anishamalblanco7386 - 27.12.2020 18:31

Thank you Dennis. This Django series is by far the best series on the internet. Learning a lot from it. Learnt Python from CodeWithHarry, and learning Django from you. I can't thank you enough for this awesome tutorial. Love from Nepal Brother.

Ответить