Build a dynamic filtering form with Django // 6 - Filtering by date and view count

  Рет қаралды 27,440

Matt Freire

Matt Freire

Күн бұрын

Пікірлер: 30
@OxMiroslav
@OxMiroslav 5 жыл бұрын
That's awesome video! I am learning Django for more than a year and still I found something new in this channel. In this vid I found out I can use "cascaded" filter on ORM object - I can filter the object again and again.
@izabelamarkiewicz2424
@izabelamarkiewicz2424 9 ай бұрын
You saved my college assignment and mental health thank you!!
@gregruiz921
@gregruiz921 2 жыл бұрын
Hey man... thanks for all you do, and keep up the great work! Much appreciated!!!
@drewanderson5867
@drewanderson5867 2 жыл бұрын
really good django tutorial
@ab5comau
@ab5comau 3 жыл бұрын
Thank you very much for this series. I have just about come to terms with Django and could not find how to handle dynamic filters.
@ax3le-2.0
@ax3le-2.0 3 ай бұрын
Thank you very much for this tutorial. Please how do you refresh back to the original site when you filter
@Jane-eunku
@Jane-eunku 4 жыл бұрын
훌륭한 강의입니다! Great Tutorial!
@lucastavares4908
@lucastavares4908 5 жыл бұрын
Awesome video!!
@alizeeboussac4087
@alizeeboussac4087 4 жыл бұрын
Hi ! Awesome video thank you. Do you think it's possible to do the same thing with tables ?
@sudipgupta87
@sudipgupta87 4 жыл бұрын
Nice! By querying all and then filtering, are fetching too much? or are we querying multiple times?
@DanielLeachTen
@DanielLeachTen 3 жыл бұрын
You are a godsend
@TheDarrenJones
@TheDarrenJones 5 жыл бұрын
Great video again. One question - how do you do the 'entering two lines at once' editing in VSCode? I can't even think of what to search for to find out how to do it.
@mattfreire
@mattfreire 5 жыл бұрын
On Mac you place the cursor and then hold the option key while clicking to place the cursor in the next place. On Windows I think it would be the alt key
@michakwiatek5031
@michakwiatek5031 5 жыл бұрын
On linux it's Alt + left mouse or Ctr + Shift + arrow(up/down)
@skelaw
@skelaw 3 жыл бұрын
Great job! How can I support you?
@malikrumi1206
@malikrumi1206 3 жыл бұрын
Thank you for this series. But I am curious: why didn’t you use DateTimeRangeField and or IntegerRangeField?
@eesakamaldien1917
@eesakamaldien1917 2 жыл бұрын
Hi can this be used off model methods aswell?
@thales-maciel
@thales-maciel 4 жыл бұрын
how can I pass the values back to the template so the user can see which filters are applied?
@cudanakiju0
@cudanakiju0 4 жыл бұрын
up
@whonayem01
@whonayem01 3 жыл бұрын
Thanks!
@anoopkg8681
@anoopkg8681 5 жыл бұрын
awesome
@jlpeyret
@jlpeyret 5 жыл бұрын
Wait, am I correct in thinking the mechanism here is to fetch all the table’s rows into memory and then filtering that down to only what you want? No problem if it’s a small table but not very viable if it had millions of rows. I suppose you could compose Django Q objects into a tuple and then ‘Journal.objects.get(*tuple_q)‘ so most of the code would still apply.
@mattfreire
@mattfreire 5 жыл бұрын
There is nothing being stored in memory. This explains how querysets are evaluated: docs.djangoproject.com/en/2.2/ref/models/querysets/#when-querysets-are-evaluated
@savannahgilmour2325
@savannahgilmour2325 5 жыл бұрын
AWESOME.
@AmanSingh-kp5zw
@AmanSingh-kp5zw 4 жыл бұрын
Hi while using the Date Filter, it does not work and in the terminal I get an error saying : RuntimeWarning: DateTimeField TwitterL4.trend_start_time received a naive datetime (2019-05-14 00:00:00) while time zone support is active. How to resolve this
@malikrumi1206
@malikrumi1206 3 жыл бұрын
Hey, it's like 9 months later, so I don't know if you still need an answer or not, but basically there are two kinds of time: 'naive', and 'timezone'. So timezone should be obvious, and naive is a time without time zone information. In your settings you are using timezone (it might just say 'tz') but the code is time naive, which is why you got this error. Look up time and time zone in the Django docs for more info.
@Boga_adventures
@Boga_adventures 4 жыл бұрын
GREAT
@doniyorabduvokhidov1706
@doniyorabduvokhidov1706 4 жыл бұрын
Cooll
@WattsInnovation
@WattsInnovation 3 жыл бұрын
what if the category was a multiSelectField?
@doniyorabduvokhidov1706
@doniyorabduvokhidov1706 4 жыл бұрын
{% empty %} No results found
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 34 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 130 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 91 МЛН
What is the future of Django / Is Django becoming obsolete?
19:35
Django Dynamic Forms Tutorial with Htmx
48:27
Matt Freire
Рет қаралды 69 М.
Django Template Filters - timesince and timeuntil
11:34
BugBytes
Рет қаралды 1,4 М.
Search Records Between to and from Date Range Python Django
23:31
Haritha Computers & Technology
Рет қаралды 19 М.
Building Django forms with django-crispy-forms
12:20
BugBytes
Рет қаралды 47 М.
Django filter And Pagination
35:17
TauhidCodes
Рет қаралды 22 М.
Build a dynamic filtering form with Django // 10 - Building an API
24:34
Query Filter Events By Date - Django Wednesdays #36
10:03
Codemy.com
Рет қаралды 15 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 34 МЛН