Filter Form Table Search | Django (3.0) Crash Course Tutorials (pt 12)

  Рет қаралды 183,478

Dennis Ivy

Dennis Ivy

Күн бұрын

Check out my Complete Django course! dub.sh/NvGboTI
Multi parameter search form with django filter form.
Follow me on Twitter: / dennisivy11
Linkedin: / dennis-ivanov
Source code + Live Demo: dennis-sourcecode.herokuapp.c...
Django Filter documentation: django-filter.readthedocs.io/...

Пікірлер: 294
@DennisIvy
@DennisIvy 18 сағат бұрын
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
@davidlinux
@davidlinux 4 жыл бұрын
Finally someone that is showing somewhat real world examples of a dashboard instead of the 'blog'. Really good job on this. Thank you...
@bentwite3093
@bentwite3093 4 жыл бұрын
Have not even finished watching this video... and am already excited with how you are breaking things down
@talhashakil8245
@talhashakil8245 4 жыл бұрын
This filtering method was amazing !!!! You explains everything perfectly. Keep it up
@cesarf.7587
@cesarf.7587 3 жыл бұрын
Dude! Thank u so much for this video. I've been looking for this since 3 weeks ago. You're a LIFESAVER!!!!! THANKSSS
@rutviktak716
@rutviktak716 4 жыл бұрын
Thanx man,only coze of ur way of teaching i'm now actually able to create my own projects🙏🏻
@egwuemijerryjude7287
@egwuemijerryjude7287 3 жыл бұрын
HI Dennis, your style of teaching is so amazing, your tutorials are wonderful and helpful to beginners thanks so much, this is python django made easy.. i have been following up with the tutorial sequentially, however the pagination video pt 13 is missing, pls do us a favour to upload it soon..thank you for your great work
@parthaprateempatra4278
@parthaprateempatra4278 3 жыл бұрын
This was the thing I was wildly searching for. I need to implement something like a chain filtering to my project.
@rayganmudberry375
@rayganmudberry375 4 жыл бұрын
welcome back dennis. did not get the notification i had to search. anyway you rock it as always. i really appreciate you. thanks alot.
@DennisIvy
@DennisIvy 4 жыл бұрын
Thank you Raygan! It’s good to be back :)
@network2901
@network2901 4 жыл бұрын
Huge respect to you for this course, it allows me to have more comprehension by real practice without waisting time, all staff i learned here i can use them very well, just this part of filtring didn't work for me, i tried severel time the same thongs you do without result, so i will appreciate really if you have time to see my code. cause i really need that ( excuse my english cause here we speak frensh).
@Marsmac48
@Marsmac48 3 жыл бұрын
Thank you so much! This series is so helpful for learning django!
@Esteban2812
@Esteban2812 2 жыл бұрын
According to the problem in 12:32: You can edit the order_form.html to fix the "Update order problem". below the {% csrf_token %} tag, you must type: {% if formset %} {{ formset.management_form }} {% for form in formset %} {{ form }} {% endfor %} {% elif form %} {{ form }} {% endif %} Hope it helps. Thanks Dennis for your videos, regards from Colombia.
@Momentsofinsanity
@Momentsofinsanity 2 жыл бұрын
You are a godsend my guy. he never covered it again.
@thinksmartstudios
@thinksmartstudios Жыл бұрын
So what we did here is if we have a formeset, we render that, else we just render single form which other views are requesting? right?
@Copt774
@Copt774 Күн бұрын
i created a separate update form page rendering 'form', not sure if thats the best but it works
@apingsample4720
@apingsample4720 4 жыл бұрын
built in Django filters are awesome! thanks Dennis!
@sigmadews5403
@sigmadews5403 4 жыл бұрын
Hi Dennis, I just wanted to tell you that your tutorials are the most useful since almost no one is covering the enterprise-level web apps. I just started with django 2 weeks ago and learned A LOT from you. Wish you all the best, I really appreciate your effort! EDIT: Does anyone know how to change the expression 'contains' on the front page to something else (translation to another language/delete it...) at the field with lookup_expr='icontains' ?
@diegohuareza.2488
@diegohuareza.2488 4 жыл бұрын
Use-> date = CharFilter(field_name="date", lookup_expr='icontains', label="ITS_######FREE_TEXT") , with label edit labeltext
@hamza-325
@hamza-325 4 жыл бұрын
For the people who want to search by the name of the product by typing, without adding the notes as he did, you can just add this line: product_name = CharFilter(field_name='product__name', lookup_expr='icontains') to the OrderFilter, and add 'product' to the list of exclude.
@bimosyahsiraj219
@bimosyahsiraj219 3 жыл бұрын
Hello sir,can you explain why field_name should be 'product__name'? I mean I don't see any field with name 'product__name'. Have a good day sir!
@electricimpulsetoprogramming
@electricimpulsetoprogramming 3 жыл бұрын
@Hamza Abbad could you answer him?
@hamza-325
@hamza-325 3 жыл бұрын
'procduct__name' is a built-in feature in Django, it simply means the attribute 'name' of the object product. It has been a very long time since I put this comment so I don't remember what is in this video. I am not even programming a lot in Django these days.
@polarization-0
@polarization-0 Жыл бұрын
the double underscore (__) means that we are accessing a parent-chield relationship. product__name means, we are accessing through our "Order" model, but we are accessing the attribute product (from the Order model) and then accessing the "name" attribute from Product model.
@sannjayy
@sannjayy 4 жыл бұрын
Thanks a ton man...
@SreebashDasFitness
@SreebashDasFitness 4 жыл бұрын
Thank you so much dear! We need more advanced projects also.
@samandarshoyimov5580
@samandarshoyimov5580 2 жыл бұрын
Thanks Dennis. I have been learning a lot from you
@user-qv7rw7dq1d
@user-qv7rw7dq1d 4 жыл бұрын
This is amazing. Concise and to the point. I have a question though... Where the heck do you apply styling to the django_filters form elements?! I'm trying to locate it so that I can make it match my bootstrap styling. Also, how do you order which form comes up first? I have the contains form all the way last and that is bothering me. Thank you 5/5 !
@TjaartSwanepoel
@TjaartSwanepoel 4 жыл бұрын
Thanks again for the series, just missing the pagination video, please consider including it
@smit764
@smit764 3 жыл бұрын
Hi Dennis, Thanks for the tutorials, it's very helpful for me I have a question about ModelForms How can I customize FormSet, Form & Filter by using bootstrap
@oleksandrdiadiushenko4971
@oleksandrdiadiushenko4971 2 жыл бұрын
Hi, Dennis! Thanks for awesome tutorial! Can we exclude some item from choise list in product or status form for example?
@frankking5326
@frankking5326 Жыл бұрын
Always amazing content and easy to follow! Thanks
@akinyelewilliamo.617
@akinyelewilliamo.617 2 жыл бұрын
Hi Dennis. Thank you for this tutorial. It’s really been helpful. I can’t seem to find the part 13 of this series. Kindly help pls. Thank you.
@siddhantsharma8454
@siddhantsharma8454 2 жыл бұрын
thank you so much, searched everywhere for this
@mengpao86
@mengpao86 2 жыл бұрын
Hi Dennis, love your videos and it helps me alot in my learning. However, I cant seem to find the next video (pt13) in the playlist nor in your video list..Has it been taken down already or ?
@khadimhusen
@khadimhusen 4 жыл бұрын
Nice, Video, I need tthis filter for exclude value. is there and option in this django-filter module for this purpose.?
@jadynchowdhury680
@jadynchowdhury680 4 жыл бұрын
Hi Dennis. Amazing videos. How would you apply a search for a customer ID, not just name. As it is possible that customers may have the same names
@paulohsgoes1959
@paulohsgoes1959 3 жыл бұрын
Excellent job. Congrats!
@theblackelephant
@theblackelephant 2 жыл бұрын
i love the way you teach
@prabinsinghkhetwal1317
@prabinsinghkhetwal1317 4 жыл бұрын
In this video you have told in the end that next video will be for pagination, however that video is not there, I.e video no. 13 is missing it seems.
@abdulazizshokirov7386
@abdulazizshokirov7386 2 жыл бұрын
Hi Dennis, thankyou for this amazing teaching. Bro, it seems to me I can't find pt13 related to pagination. Can you share it also? Thank you again for your effort!
@navyarg209
@navyarg209 3 жыл бұрын
Hey Dennis, Is there a way to sort querysets using django-filter??
@lukasmodric3063
@lukasmodric3063 4 жыл бұрын
Do you know how to change te appearance of the django-filter field ? Pelease help me.
@bernardvandenberg2209
@bernardvandenberg2209 3 жыл бұрын
Hi Dennis. Thanks for the tutorials. They are very good. I am not able to get your next Tutorial (pt 13). It seems to be lost. Can you load it again?
@dradrigapatrick
@dradrigapatrick 3 жыл бұрын
I got the error while running this topic "Filter Form Table Search" following your work So i dont if there is a change in pip 20.2.3 and django 3.1.1
@kfootballkid
@kfootballkid 2 жыл бұрын
Are there any concerns for SQL injection when your search parameters are displayed in the URL?
@polarization-0
@polarization-0 Жыл бұрын
In the lookup expression, 'icontains' does not "exclude case sensitivity". It checks whether the characters I'm searching with, are present in that particular field or not.
@nicholassmith6412
@nicholassmith6412 3 жыл бұрын
Such useful videos, thanks so much for making these
@abhishekgourav6144
@abhishekgourav6144 3 жыл бұрын
The form is not rendering when i give {{myFilter.form}} although i did cross check if i made any mistake by removing .form from myFilter and its just not rendering the form
@pallyweb
@pallyweb 4 жыл бұрын
Hi Dennis , hope you are doing well. At the end of this tutorial you mentioned about "pagination" tutorial (pt13) . I can't find that specific tutorial among all your videos. Please update regarding it. Thanks :)
@patricklam18
@patricklam18 4 жыл бұрын
Great Video. Very expecting to next.
@darkamv457
@darkamv457 3 жыл бұрын
hey man, how i can change the lenguaje to spanish in the 'lookup_expr' i want change the 'is greater than ' to ' es posterior a'
@adosntobondombasi7670
@adosntobondombasi7670 2 жыл бұрын
hello I would like to filter dynamically data, as when we are in a social network it is our own data that is displayed can you help me please?
@dobrildobrilov6368
@dobrildobrilov6368 4 жыл бұрын
Hello Dennis, how can I change date input_format for the start_date filter to day/month/year , because currently it accept only month/day/year? I know it can be done by settings.py -> DATETIME_INPUT_FORMATS , but then this will apply for the whole project. I need just be able to apply such input_format only for start_date field.
@sdtk9635
@sdtk9635 4 ай бұрын
Thank you very much for this video, helped a lot
@kis_codes
@kis_codes Жыл бұрын
hi Dennis i cant seem to get the source code for the register.html. please is there anywhere i can get it?
@ankurtiwari5664
@ankurtiwari5664 4 жыл бұрын
how can i add calender in start_date and end_date field to pick date,instead of writing whole
@mahammadhusaim
@mahammadhusaim 3 жыл бұрын
hello sir after applying filter how to style it i mean how to apply css or boostrap class on filter box like textbox or other filter fieldset
@dradrigapatrick
@dradrigapatrick 3 жыл бұрын
Hey, I have solved after reading through the documentation over and over again. Thanks still.
@jimmycala
@jimmycala Жыл бұрын
Thanks a lot!! But I'm having troubles with ForeignKey... I just can see the ID labels like Model Object (1), Model Object (2), Model Object (3)....Model Object (16). But the filter actually works.
@louismefor9539
@louismefor9539 4 жыл бұрын
Thank you dennis this is awsome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@thesumitsingh1234
@thesumitsingh1234 4 жыл бұрын
I have a table which has nearly hundred thousand rows. Everytime a user will search, the entire database will be searched, which will consume server processing power. How can I add some sort of cache feature so that the search results are stored and lesser CPU resources are consumed? (since I expect a lot of users to be using it simultaneously)
@CRYSTALXO24
@CRYSTALXO24 Жыл бұрын
How can I change field_name contains: that comes with the {{ django_filter }} inside my html??
@avadhootshinde1150
@avadhootshinde1150 4 жыл бұрын
when note added to manage.py order class and run command makemigrations but it says no migrations detected. Any on can help??
@sumnanazadi
@sumnanazadi 4 жыл бұрын
Hi, What if I only want to show data after clicking the SEARCH button. Before that, I don't want to show any table data.
@i701Dev
@i701Dev 2 жыл бұрын
How do i go about styling the fields with css? If anyone knows please tell me
@parneetisood2728
@parneetisood2728 3 жыл бұрын
How can I add calendar/date picker in the Date field..?
@barnabascharumbuka6744
@barnabascharumbuka6744 4 жыл бұрын
hi Dennis How can i export the filtered data.
@beatrizgomes8077
@beatrizgomes8077 3 жыл бұрын
Man, I love you so much! Thank you for that.
@rachanagupta6705
@rachanagupta6705 3 жыл бұрын
Hi Dennis, When I am trying using django_filters, I am getting following error: AttributeError: module 'django_filters' has no attribute 'FilterSet'. Please help me.
@WA232010
@WA232010 Жыл бұрын
Hello when I try this tutorial in my App, my all page refresh when I click on Search Because in my app I have a tabs, this tabs getting pages so What you did to don't refresh the page. ? thank you
@ujjwalsaxena6469
@ujjwalsaxena6469 3 жыл бұрын
lookup_expr="lte", is not working as you said, it return the orders which are lesser than the date but not on that day. Do you know why is this happening.
@programmer7606
@programmer7606 4 жыл бұрын
can we shorten " Date created is greater than or equal to" ?
@francineamberfortes4138
@francineamberfortes4138 3 жыл бұрын
hi the update does not work i dont know why can you help me this?
@fatimamalik3211
@fatimamalik3211 2 жыл бұрын
I'm getting error when I try to add django-filters in installed apps... Please help
@nakhan69
@nakhan69 2 жыл бұрын
Hi Dennis what I learn form you as a beginner, I did not learn in school. Thank you. You are the CHAM
@adeleoolab8633
@adeleoolab8633 3 жыл бұрын
@dennis Ivy Thanks so much for your well made video and all these information. is it possible to use the code you provided in this video in my Project ? Thanks
@anushribarsaiyan8302
@anushribarsaiyan8302 4 жыл бұрын
hi sir i am using ubantu if install filter its given this error 'Package 'django-filter' has no installation candidate' please help me
@mahderzergaw3918
@mahderzergaw3918 3 жыл бұрын
idk y but the filter filed are not displaying i only see the search button please anyone tell...
@mayankgupta6542
@mayankgupta6542 4 жыл бұрын
Your tutorial is great!! Helped ,me a lot. Can you help me to sort data liked we filter it based on model fields?
@themousepotato8257
@themousepotato8257 3 жыл бұрын
Hello, thank you for your tutorial can you guide how to redirect search results, I want search results displaying in another page
@kken8766
@kken8766 4 жыл бұрын
Hi, I have been following along the tutorial and notice that part 13 is missing. Great Video
@Will29295
@Will29295 3 жыл бұрын
YES!!!! WHY IS IT MISSING!?
@Jjolasman
@Jjolasman 3 жыл бұрын
where is the pagination video? is not in your playlist :/
@TechnologyTipsTricks
@TechnologyTipsTricks 4 жыл бұрын
Please tell me how to create a weekly-filter and monthly-filter ???
@onlinetimenow1647
@onlinetimenow1647 4 жыл бұрын
any tutorial on dependant drop-down select like category-->subcategory or country-->province-->city using pure Django and maybe jquery would be appreciated(no third party for learning and understanding reason how things work)! i looked what is available on the internet and tried but not working! any step by step from creating model to view and modelForm would be nice.
@arek9430
@arek9430 Жыл бұрын
I have question, what if I wanted to filter order.product.name ? How to acces this in field_name? Maybe there is different apporach? Thanks for the video and whole series.
@absoluteabout3981
@absoluteabout3981 4 жыл бұрын
So far, so great Pagination !! please😀
@roderickdanzing1414
@roderickdanzing1414 3 жыл бұрын
ive been following this tut and part 13 is missing and i encountered a lot of error..please upload part 13 tnx
@tabraizcreation7689
@tabraizcreation7689 3 жыл бұрын
Hi Dennis, Please help me solve these as I'm following your series 1. By adding a new field into the model now I can't update them 2. Navigating to the next page if the product count is greater than 5 3. How can I reset the search form ??? although I'm grateful that you thought about lectures for the latest Django version
@nhfx2261
@nhfx2261 6 ай бұрын
Where is 13th Tutorial, Please give me the link of 13th video if anyone have that
@owaisbashir26
@owaisbashir26 3 жыл бұрын
Buddy my order form is an empty object Could u guide plz?
@JP-zq2js
@JP-zq2js 4 жыл бұрын
wow!!!!just awesome man!!!!
@Numbersss
@Numbersss 3 жыл бұрын
How to do this with a class based list view ?
@nihirshah4752
@nihirshah4752 3 жыл бұрын
I want to display parent class data how can I do that???
@sabrinatahir3545
@sabrinatahir3545 3 жыл бұрын
{{myFilter.form}} is not working for me .. it doesn't show any form ... what to do?
@NeerajExplores
@NeerajExplores 3 жыл бұрын
Great job bro
@ashleyadrias
@ashleyadrias 4 жыл бұрын
Great Tuto! I made a quick change to the order_form.html to made into account the switch between formset (creating new orders) and forms (updating previous orders)... Im a newbie but is this a way you would do it? {% csrf_token %} {% if formset.management_form %} {{ formset.management_form }} {% for form in formset %} {{form}} {% endfor %} {% else %} {{form}} {% endif %} Thanks again for your help!!
@hammadyasir2174
@hammadyasir2174 4 жыл бұрын
SIR lecture number 13 are missing kindly sir upload it
@kuwingderazen7539
@kuwingderazen7539 3 жыл бұрын
can use 3.1version?
@zokirgofurboyev220
@zokirgofurboyev220 3 жыл бұрын
You are great. Thank you very much
@valerapelenskiy5015
@valerapelenskiy5015 4 жыл бұрын
hi, thank you for your amazing tutorials. I'd like to ask you to make a lesson about Django-Tables2 or other data tables with filtering, sorting, paginations. With the ability to select all rows and do some actions with selected rows. Imagine that you have 50,000 products or more and you need to import them into a file or change the status for everyone.
@Isha7558
@Isha7558 4 жыл бұрын
i need it now
@nsnilesh604
@nsnilesh604 2 жыл бұрын
How to get multiple selection in filter
@nourhacker3734
@nourhacker3734 4 жыл бұрын
Hi Dennis, Thanks for the tutorials, they are very helpful! I was wondering about "lecture 13", I think you forgot to upload it. Is it so or you are still working on it?
@davidbrown2806
@davidbrown2806 4 жыл бұрын
I looked at the future code in the repository, and it does not appear that there is any pagination code. I could be wrong, but that's how I see it.
@sharifahmed1925
@sharifahmed1925 4 жыл бұрын
Hi Dennis. I've followed your tutorial on the filtering but my filters don't have the drop down as yours do. Instead I have to type in the values of the field I want to search for. Any idea how to get the drop down select functionality??
@zadilkhwaja
@zadilkhwaja Жыл бұрын
Did u get solution
@francineamberfortes4138
@francineamberfortes4138 3 жыл бұрын
NoReverseMatch at / Reverse for 'create_order' with no arguments not found. 1 pattern(s) tried: ['create_order/(?P[^/]+)/$'] hi can you help me fix this?
@60secwithMalikHamza
@60secwithMalikHamza 2 жыл бұрын
sir my search button not working or my orders not filtering plzzz kindly help
@dahichhole
@dahichhole Жыл бұрын
How to add css in form?
@jacodevilliers1937
@jacodevilliers1937 4 жыл бұрын
Thanks Dennis!
@user-qv7rw7dq1d
@user-qv7rw7dq1d 4 жыл бұрын
Awesome. Thank you!
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 76 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 77 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН
Django Skills Roadmap To Getting A Job
17:31
Dennis Ivy
Рет қаралды 65 М.
Inline Formsets | Django (3.0)  Crash Course Tutorials (pt 11)
10:43
Search Products - Django Wednesdays ECommerce 26
21:05
Codemy.com
Рет қаралды 3,4 М.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Codemy.com
Рет қаралды 124 М.
Search Records Between to and from Date Range Python Django
23:31
Haritha Computers & Technology
Рет қаралды 18 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37