39 - Django QuerySets & Lookups - Python & Django 3.2 Tutorial Series

preview_player
Показать описание
39 - Django QuerySets & Lookups - Python & Django 3.2 Tutorial Series

Try Django 3.2 is a series to teach you the fundamentals of creating web applications with Python & Django by building a real project step-by-step.

Рекомендации по теме
Комментарии
Автор

Really valueable videos thank you so much

kyawmying
Автор

Thanks for the great series. Learning a lot of new things that I did not know before.

jiweihe
Автор

If any one is having troubles with the numbering of their slugs (all of them having the same suffix). This is because this numbering only works if all your slugs have been named previously.
If you already have this problem, what you should do is:
1. comment line 27, 28 and 29
2. exit shell mode
3. go into shell mode and run the same commands as in 10:56 (this will name all you slugs without numbering them)
4. uncomment line 27, 28 and 29
5. exit shell mode
6. go into shell mode and again run the same commands as in 10:56
Voilá!

DanielValenzuelaPerez
Автор

this series is great, thanks for sharing this

vincent
Автор

Learning a lot from your tutorials. Thank you for them. I have a question, how do I go about converting a Queryset to a dictionary

Ease_and_Plenty
Автор

Why do I need to call "slugify_instance_title()" in both pre_save and post_save?

russomario
Автор

What could be the issue here - class Article(models.Model):
File "C:\Users\user\Documents\dev\try-django\trydjango\articles\models.py", line 41, in Article
pre_save.connect(article_pre_save, sender = Article)
NameError: name 'Article' is not defined

godpoweramaefule
Автор

hello, appreciate the great work man. I have a question please. How are the slugs in all instances updated here? Did you update each one manually or did I miss something to update them all automatically?

ahmedsaad
Автор

For some reason, the slug name is not incrementally counting up...working on troubleshooting.

folders
Автор

qs.count() from the @10:30 timestamp returns me back nothing bigger then 1, even if all the articles are identical. I've downloaded current code from the Git repository, and it works the same (never bigger then 1).
If anyone has an idea why on the videeo the counter eventually increments to 2, 3, ... 18, please-please-please share 🙏

lexborodai