Django Select2 Tutorial | Django Dropdown | Django ajax Dropdown | Django Search and Filter

  Рет қаралды 38,445

Code Band

Code Band

Күн бұрын

Пікірлер: 78
@CodeBand
@CodeBand 4 жыл бұрын
25:12 -- Fix Change to : elif self.instance.pk:
@АнатолийКорнеев-ц4ж
@АнатолийКорнеев-ц4ж 2 жыл бұрын
I was trying to solve my problem for 2 days until I found this video. The explaination was just brilliant. Well done and thanks!
@CodeBand
@CodeBand 2 жыл бұрын
Glad it helped!
@rashedmazumder2522
@rashedmazumder2522 4 жыл бұрын
Great video. Spent countless hours trying to find a good autocomplete. This video saved me.....
@CodeBand
@CodeBand 4 жыл бұрын
Glad it helped..keep going👍🏻👍🏻👍🏻
@Kennerdoll
@Kennerdoll 5 ай бұрын
you made it simple for me great job bro
@gulshairbutt3860
@gulshairbutt3860 2 жыл бұрын
Thank you so much. I was just customising the ModelForm in admin and it worked just perfectly fine.
@CodeBand
@CodeBand 2 жыл бұрын
Great!
@paulohsgoes1959
@paulohsgoes1959 4 жыл бұрын
Excellent jog. You've just gotten a new subscriber.
@CodeBand
@CodeBand 4 жыл бұрын
Thanks a lot❤️
@markarrowsmith7521
@markarrowsmith7521 4 жыл бұрын
Thanks, great video! Well explained and shown at a good pace!
@CodeBand
@CodeBand 4 жыл бұрын
Glad it was helpful!
@williamlemosdevargas253
@williamlemosdevargas253 2 жыл бұрын
thanks, it helped me with a problem at work
@CodeBand
@CodeBand 2 жыл бұрын
Welcome😊
@tariksnet
@tariksnet 3 жыл бұрын
Great video, thanks.
@CodeBand
@CodeBand 3 жыл бұрын
Glad you liked it!
@bobs123123
@bobs123123 4 жыл бұрын
Thank you ! this video helps a lot
@CodeBand
@CodeBand 4 жыл бұрын
Glad it helped!
@escalonajordana2090
@escalonajordana2090 3 жыл бұрын
excelent!!
@CodeBand
@CodeBand 3 жыл бұрын
Thanks 🤗
@tristanescaba5530
@tristanescaba5530 4 жыл бұрын
Thanks! well explained!
@CodeBand
@CodeBand 4 жыл бұрын
Glad it was helpful! Please share to your circle too... :)
@khadimhusen
@khadimhusen 4 жыл бұрын
Good tutorial.
@CodeBand
@CodeBand 4 жыл бұрын
Glad it was helpful! Keep supporting brother... :)
@MotorbreathcL
@MotorbreathcL 3 жыл бұрын
Thank you so much!
@CodeBand
@CodeBand 3 жыл бұрын
Glad to help😊
@convenienciadigital1129
@convenienciadigital1129 2 жыл бұрын
very good
@CodeBand
@CodeBand 2 жыл бұрын
Thanks😊
@kapitankidlattv9613
@kapitankidlattv9613 2 жыл бұрын
Great video! Quick question, can we use this in formset?
@CodeBand
@CodeBand 2 жыл бұрын
Thanks, and of course you would be able to integrate it with formset with some tweaks :)
@uberdamcavaletti
@uberdamcavaletti 3 жыл бұрын
HI, it is possible to make query_set filter in non Admin forms, when the user press key in select ?
@CodeBand
@CodeBand 3 жыл бұрын
Yeah, you can make use of onchange event listener to the select element.
@nikhilrizal3729
@nikhilrizal3729 3 жыл бұрын
How to if we have more than one , I tired is not working please show us or is there any documentation
@CodeBand
@CodeBand 3 жыл бұрын
It should've worked.... even in the case of two fields... You might have got the idea from the video itself on how to do that... Also you can consult Select2 and Django Docs...
@marioa1838
@marioa1838 2 жыл бұрын
Thank you! it worked. But now, I am wondering what I've got to do if I want two select2 fields in the same form. It probably has something to do in the views.py file, right? Along the lines of if #buttonid is clicked, then this term search, if #buttonid2 is clicked then this, right? but ive got no idea
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... Yeah, you can do that by tweaking views.py and the frontend.
@asgeralia8802
@asgeralia8802 Жыл бұрын
Sir superb, but i want in employee form having coutry from country tbl, blood group, department from dpt tbl, section, designation from desig tbl and etc. Can pls explain. And this not download
@Samuelnois
@Samuelnois 2 жыл бұрын
Ei, bro. How do I implement with CreateView ? I can't make it to the second part with createview
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply.... Is this fixed ?
@Samuelnois
@Samuelnois 2 жыл бұрын
@@CodeBand yes. Thanks
@sassydudes5590
@sassydudes5590 2 жыл бұрын
Hey brother I'm working on a project where I have a model name Book and inside it I've one field called Author, this author is many to many field so which just like in this video you've language which is getting its field fron language model, it is same in my project. I want to get authors for book upload form from authur model, Now what I want to do is when we have new author then rather than manually crating that author in authur table in admin pannel I want to add it through selecte2 plugin Can you can tell Me how can I do it Now I what I want to do is When I click on
@CodeBand
@CodeBand 2 жыл бұрын
docs.djangoproject.com/en/4.1/topics/db/examples/many_to_many/ The docs has so much info. on this relationship and its almost the same example they are taking.
@solques36
@solques36 4 жыл бұрын
Could u tell me the method to do if i had a search bar instead using only How would i implement the select 2 for this?
@CodeBand
@CodeBand 4 жыл бұрын
The better way to do that will be using another library called jQuery UI..I have done a video on that too... kzbin.info/www/bejne/Y6Cvh42mZrOEjKc Also, refer this stackoverflow question for more info... stackoverflow.com/questions/20223044/select2-start-with-input-field-instead-of-dropdown
@travelfreak1246
@travelfreak1246 2 жыл бұрын
'WSGIRequest' object has no attribute 'is_ajax' this is my error. please answer me..
@CodeBand
@CodeBand 2 жыл бұрын
groups.google.com/g/django-users/c/5x-qF0Q5Xi8?pli=1
@vinayyadav2036
@vinayyadav2036 4 жыл бұрын
how can we filter data for ManyToManyFields ?
@vitor_neto
@vitor_neto Жыл бұрын
How to do it in a many to many relationship, with multipleselect?
@ayubkara1092
@ayubkara1092 2 жыл бұрын
can you show us how to use select2 with django_filters
@CodeBand
@CodeBand 2 жыл бұрын
Will try to do a video on it, meanwhile try digging into docs and figure it out...
@ayubkara1092
@ayubkara1092 2 жыл бұрын
@@CodeBand will do , Thanks
@ranjeetmishra9031
@ranjeetmishra9031 4 жыл бұрын
Thanku sir
@CodeBand
@CodeBand 4 жыл бұрын
Thanks a lot😊
@codedjango
@codedjango 4 жыл бұрын
How about multiple select instead? for m2m relationships?
@CodeBand
@CodeBand 4 жыл бұрын
Bro, its pretty much the same concept with little tweaks, if you see the whole video, then probably, you could definitely do the multiple select as well. Thank you.
@codedjango
@codedjango 4 жыл бұрын
Ok i will try
@mfsdrawings8600
@mfsdrawings8600 4 жыл бұрын
Nice
@CodeBand
@CodeBand 4 жыл бұрын
Thanks 😊
@DimitrisKougioumtzis
@DimitrisKougioumtzis 3 жыл бұрын
how to add select2 widget in django admin tabular inline form ?
@CodeBand
@CodeBand 3 жыл бұрын
stackoverflow.com/questions/68084590/how-to-use-django-select2-widgets-in-django-admin-site
@KrishnaManohar8021
@KrishnaManohar8021 4 жыл бұрын
How e-commerce websites do currency converter. When I select USD the price shown in $, when I click INR price shown in rupees. How? How?
@CodeBand
@CodeBand 4 жыл бұрын
There are a lot of API's available out there to do the conversion. Thanks.. :)
@KrishnaManohar8021
@KrishnaManohar8021 4 жыл бұрын
@@CodeBand bro push any tutorials for that. May be it trending topic 🤔
@CodeBand
@CodeBand 4 жыл бұрын
Will think about that...anyway a great idea :)
@KrishnaManohar8021
@KrishnaManohar8021 4 жыл бұрын
@@CodeBand I already give u DRF & JwT tutorials, still your not implemented 😟
@CodeBand
@CodeBand 4 жыл бұрын
@@KrishnaManohar8021 Will definitely post them in the near future, Little bit busy now a days, pardon me.
@imouranasavane1054
@imouranasavane1054 4 жыл бұрын
Thanks lot, your video helps lot. I have a form with two fields to be completed with different Foreinkey(email, employee department), could you help me. Please
@CodeBand
@CodeBand 4 жыл бұрын
Thanks :) The process is pretty much the same with even two foreign key fields. You may different options like you can make different ajax requests and url paths for those two foreign key fields OR you can use the same one and differentiate them in the function.
@walterrandazzo6399
@walterrandazzo6399 4 жыл бұрын
Hi guys, How to use it with Boostrap?
@CodeBand
@CodeBand 4 жыл бұрын
Please go through this link... stackoverflow.com/questions/36132875/how-to-use-select2-bootstrap
@xlsautomatizaciones9197
@xlsautomatizaciones9197 4 жыл бұрын
@@CodeBand Thanks bro, keep doing this!
@CodeBand
@CodeBand 4 жыл бұрын
Glad to hear that..😊😊
@coastallivestream7117
@coastallivestream7117 4 жыл бұрын
next video on tinyMCE PLEASE
@CodeBand
@CodeBand 4 жыл бұрын
Thanks for the suggestion, I will definitely look into that in a future video.
@rdarktemplar1989
@rdarktemplar1989 3 жыл бұрын
nonsense...
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Search Products - Django Wednesdays ECommerce 26
21:05
Codemy.com
Рет қаралды 6 М.
Django Search
1:31:18
Very Academy
Рет қаралды 20 М.
Dynamic list views with Django and htmx
34:09
Matt Segal
Рет қаралды 15 М.
Create a Dependent Select Field in Django With HTMX
14:37
Pretty Printed
Рет қаралды 19 М.
Django & HTMX - Dynamic Form Creation and Submission
24:36
BugBytes
Рет қаралды 31 М.
Django live search | live search using django and javascript
20:07
Django Dynamic Forms Tutorial with Htmx
48:27
Matt Freire
Рет қаралды 70 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН