As an absolute noobie that is just learning all of this, you just saved me at least 5 hours of my life. Great video man!
@CodeBand4 жыл бұрын
Very glad to hear that..keep going❤️
@alokyadav68122 жыл бұрын
Crystal clear explanation, Thank you.
@CodeBand2 жыл бұрын
Glad to hear that :)
@marcinpasikowski51254 жыл бұрын
Thank you! This is exactly what I needed. Simple and step by step so I can start implementing it in my code and building from it , actually understanding what I am doing, not just pasting ready solutions. Great job!
@CodeBand4 жыл бұрын
Glad it helped! Keep going👍🏻
@shubhamgupta77303 жыл бұрын
You are awesome dude. Love you ♥️.
@CodeBand3 жыл бұрын
😊
@jmpersic2 жыл бұрын
Excellent video, a diamond in the rough. Thanks.
@CodeBand2 жыл бұрын
Very glad to hear that... 👍🏻
@edgarprada31714 жыл бұрын
I've been looking for a tutorial like this, simple and clear. Thanks.
@CodeBand4 жыл бұрын
Glad to hear that bro...❤️
@janzsobence3 жыл бұрын
Thanks! It's very straightforward video.
@CodeBand3 жыл бұрын
Glad to hear that😊
@DemolaOkesola3 жыл бұрын
Simple and very clear! Thanks for this
@CodeBand3 жыл бұрын
Glad it was helpful!
@hildaamadu8920 Жыл бұрын
Thanks so much for this. Looked for a lot of vids to help with this, fortunately your vid helped a ton!
@hildaamadu8920 Жыл бұрын
I'm trying to do the same for multiple inputs but it isn't working. Can anyone help?
@brunocoutinho87993 жыл бұрын
This was exactly what I was looking for, great video! Thanks
@CodeBand3 жыл бұрын
Glad it was helpful!
@TUALERON2 жыл бұрын
It worked perfectly thanks!!!!!!
@CodeBand2 жыл бұрын
Glad it helped
@fahimkamalahmed35444 жыл бұрын
Thank you. I learn something new from you, and with it you earned a new subscriber.
@CodeBand4 жыл бұрын
Its my pleasure brother...Thanks for subscribing and also please share my channel in your circle...Keep learning :)
@dantedt39314 жыл бұрын
Great video!Subscribed.
@CodeBand4 жыл бұрын
Glad to hear that❤️
@FaizudheenM4 жыл бұрын
I have started studying Laravel using your tutorials. It's very helpful ❤️😍 Keep On Going 🤘🔥🔥🔥
@CodeBand4 жыл бұрын
Glad to hear that brother...Thank you and Keep learning..:)
@paulohsgoes19594 жыл бұрын
Thanks a lot for sharing. I'll try this out in my project. Nice job!
@CodeBand4 жыл бұрын
Glad to hear that...❤️
@FaizudheenM4 жыл бұрын
The way you presented is very perfect ❤️🔥
@CodeBand4 жыл бұрын
Thanks a lot brother...keep supporting.. :)
@ayabc43203 жыл бұрын
Very useful 🙏💙❤️
@CodeBand3 жыл бұрын
Glad it was helpful!😊😊
@nikolat_272 Жыл бұрын
Tnx bro , it works for me
@andreyandreyovich54543 жыл бұрын
thanks, really great
@CodeBand3 жыл бұрын
Glad to hear that😊
@papyasultanasultana6423 жыл бұрын
Thanks brother thanks a lot ,
@CodeBand3 жыл бұрын
Glad to hear that and keep watching😊
@JimitRupani4 жыл бұрын
Great Video.
@CodeBand4 жыл бұрын
Glad you enjoyed it
@MotorbreathcL3 жыл бұрын
Thank you!
@CodeBand3 жыл бұрын
😊
@rohansadhukhan11983 жыл бұрын
Life saver!
@CodeBand3 жыл бұрын
Glad to hear that👍🏻
@ahmedsamv39884 жыл бұрын
nice video, thanks a lot.
@CodeBand4 жыл бұрын
Glad you liked it!😊
@thiagodantas43043 жыл бұрын
Thanks!!
@CodeBand3 жыл бұрын
You're welcome😊
@ROMAN-zu3wu Жыл бұрын
Great
@ahmed_mag3 жыл бұрын
Thank you . I want to trace query set i use django debug toolbar but it dos,t work with ajax query how i can know how many queries when i use ajax
Excellent tutorial. How to recover the selected value as a variable? Thank you!
@CodeBand2 жыл бұрын
Glad to hear that, and you can get the selected value by targeting the input field and getting the value, something like $("#id_of_input").val() in jQuery will pull the value.
@KrishnaManohar80214 жыл бұрын
Super...
@CodeBand4 жыл бұрын
Thank you and keep supporting... :)
@KrishnaManohar80214 жыл бұрын
@@CodeBand start telegram group.
@CodeBand4 жыл бұрын
@@KrishnaManohar8021 Yeah, going to start soon...
@CodeBand4 жыл бұрын
Started telegram and whatsapp groups... t.me/communitycodeband chat.whatsapp.com/D1KmrW3euZa4nUmIYgv04P
@yorker31483 жыл бұрын
Thanks !! ,very good info , Is it possible to do this with only javascript , without using JQuery?
@CodeBand3 жыл бұрын
Yes, definitely. jQuery just makes it easy, that's it.
@mfsdrawings86004 жыл бұрын
Very nice
@CodeBand4 жыл бұрын
Thanks
@eskimo-com-ua3 жыл бұрын
Hi, thanks for the video. How to do it for two different forms with different data on one page?
@CodeBand3 жыл бұрын
Sorry for the late reply... You can absolutely do that... At the end, you are selecting an input element and applying the autocomplete functionality... so definitely you can do the same for other input by targeting that element with a different id, for example.
@marvinguillan36774 жыл бұрын
Thanks for this, it was really helpful. Do you know how to add a select event onto this? So for example, if I had a page for each product, and a get_absolute_url function for it too, how would I redirect to the product's page when clicking on its title in the dropdown? I'm struggling with how to use the product's title to then fetch the product and use its get_absolute_url in the javascript.
@CodeBand4 жыл бұрын
Glad to hear that...binding a select event is very simple. There is a select prop you can use on the autocomplete function. Check this article here www.tutorialspark.com/jqueryUI/jQuery_UI_AutoComplete_Events.php Hope this helps😊
@pranavshinde25353 жыл бұрын
Why can't we fetch all the list of values from server only once and then it is used everytime I type anything in the box.
@CodeBand3 жыл бұрын
Yeah, that's also possible and it is the recommended solution in some cases... Here, we make it more dynamic... If you feel like your data doesn't change more often, then you could stick to that method...
@arjunpa86483 жыл бұрын
thanks❤️
@CodeBand3 жыл бұрын
😊😊
@abidmohamednadhir95754 жыл бұрын
Thanks for that great video but do you have any resources on how after selection I can submit a django model?
@CodeBand4 жыл бұрын
Hey bro, this is just selecting an option right upon typing right, the rest of the things are same, if you submit the form, you get that data at the backend. Hope I answered the query, please let me know if you have any doubts... Thank you:)
@epsweepstakes78893 жыл бұрын
@@CodeBand Hey I am having this same issue as well. Been googling around nonstop but can't figure it out... can you please lead me in the right direction?
@CodeBand3 жыл бұрын
@@epsweepstakes7889 I couldn't figure out why you can't submit the form ? Please post more detail about the issue...
@epsweepstakes78893 жыл бұрын
@@CodeBand Idk javascript confuses the hell out of me lol but I finally just figured it out. Think I read 100 stackoverflow posts haha
@CodeBand3 жыл бұрын
@@epsweepstakes7889 lol😂 Some things are like that...you might need to research a lot to get into a solution... But, believe me, you'll get the solution eventually😊
@BrighterWay4 жыл бұрын
Awesome Tutorial! Bro do we use this to multiple fields in one form??
@CodeBand4 жыл бұрын
Yes, of course we can do that 😊
@BrighterWay4 жыл бұрын
@@CodeBand any Reference for that?? How can I Do it??
@CodeBand4 жыл бұрын
@@BrighterWay It's almost the same procedure as in this video, just give it a try yourself, its not that hard. :)
@yurigorohov9575 Жыл бұрын
Hello, thx for this lesson. Can u help and tell how can i rename url pattern, when i use live search i have url like this ?q=New+York%2C+NY, and i want like this new-york-ny
@christiancasanova41762 жыл бұрын
Is it possible to make this in a class (CreateView)? Is not working for me
@CodeBand2 жыл бұрын
Yup, it will work if the setup is correct. And the type of generic view (CreateView etc) differs based on your use case.
@himanshushekharjha62484 жыл бұрын
This is really cool. I also wanted to enhance this feature by those making the portion of the strings that we search appear bold in results, like Google search. Is there any way to do that?
@CodeBand4 жыл бұрын
I'm not very sure if that feature is built into jQuery UI. Please check jQuery UI Docs. Otherwise, I believe you can do that with some css.
@nicenaija99523 жыл бұрын
Make more Ajax django Tutorial
@CodeBand3 жыл бұрын
Sure bro...will definitely do in future...😊
@asgeralia8802Ай бұрын
Sir can u please dynamic search or auto complete bcz I want apply several template
@kkmusic_kp2 жыл бұрын
Once a suggestion is selected I want to get related data from json to be updated in another field. How to do that?
@CodeBand2 жыл бұрын
api.jqueryui.com/autocomplete/#event-select You can use this event listener.
@maqsoodhakro1363 жыл бұрын
Hello sir, thanks for amazing tutorial. I have successfully implemented in website & it works perfectly , just I am facing one problem. When I type fast hit enter, it shows previous list. how can i solved this problem? thanks.
@CodeBand3 жыл бұрын
You can make a delay prop in the widget... Refer docs here : api.jqueryui.com/autocomplete/
@akmshariaradditionaldirect34424 жыл бұрын
Thanks you for your tutorials. I request you to make a tutorials about autocomplete address information where user just submit pin code then division, district and upazila automatically set from database or views.py like choice fields
@CodeBand4 жыл бұрын
Great suggestion! Checkout Google Address Autocompletion feature, btw. developers.google.com/places/web-service/autocomplete
@uberdamcavaletti3 жыл бұрын
Excelent video, but i search the data in a foreign key model ?
@CodeBand3 жыл бұрын
Thank you... you can use __ to access related model attribute. For eg., qs = Product.objects.filter(category__name='test')
@asgeralia880211 ай бұрын
Multiple text boxs in a form like city, state, designation, department, gender likewise.
@uberdamcavaletti3 жыл бұрын
How to validate autocomplete field in form ? To appear a message in form "This field is mandatory "
@CodeBand3 жыл бұрын
You can use different events available on the plugin. Refer api.jqueryui.com/autocomplete/#event-change
@MrDmitriM4 жыл бұрын
It will be better to use generator instead of classic for loop, couse it's a bit faster. Something like this: titles = [product.title for product in qs]
@CodeBand4 жыл бұрын
Absolutely correct..The video is more of a beginner friendly one...and thats why I took the other way...👍🏻
@InspiredHarvey4 жыл бұрын
it would actually be better to use titles = list(qs.values_list('title')) so you only get back a list of titles from db
@fowad272 жыл бұрын
what if I want to call this within another template?
@CodeBand2 жыл бұрын
Its fairly simple, right ... doesn't really matter from where you're calling...
@aakashverma86024 жыл бұрын
hello thanks for the video , it work fyn in my development server but does not work in production . it gives (index):115 Uncaught TypeError: $(...).autocomplete is not a function in console . pleasereply with suitable solution, if possible
@CodeBand4 жыл бұрын
There might be some issues with the imported jqueryui library... See this : stackoverflow.com/questions/16300586/typeerror-autocomplete-is-not-a-function
@asgeralia88026 ай бұрын
Sir pls explain django-auto complete-light
@binladen3604 жыл бұрын
I use your code from Github but it still doesn't show search suggestions from the autocomplete box
@CodeBand4 жыл бұрын
It should have worked as it does in the video...please cross check your code with the one in video.. 😊
@stelity4 жыл бұрын
you have to add pen, pencil, etc to the products when you log in as admin
@Isha75584 жыл бұрын
hello can u do a video on date range filter on data table with ajax
@CodeBand4 жыл бұрын
Will try to do that in the future... :) And for your reference, you can basically do pretty much the same procedure as in this video, the only thing that might change is the js library.
@imranmidday3644 жыл бұрын
Reverse for 'psearch' not found. 'psearch' is not a valid view function or pattern name. I'm getting this error
@CodeBand4 жыл бұрын
You might be using reverse() or redirect() in your application and the argument you provided does not exist. Meaning there is no url that has the name='psearch' in your application. May be you misspelled it to be 'search' or you might not have given name property to the url .Please check that and thanks😊
@littlejaychou7984 жыл бұрын
Does anyone know how to do the same but with bootstrap tagsinput typeahead or autocomplete? bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/
@CodeBand4 жыл бұрын
I haven't personally worked with it...I have gone through the docs, its not that hard, you can implement it..👍🏻Keep going😊
@MohitYadav-ie2wu4 жыл бұрын
facing this error: Uncaught TypeError: $(...).autocomplete is not a function
@CodeBand4 жыл бұрын
That's because, you might not have imported jquery or/and jqueryui...
@СергійКрук-ж4ю4 жыл бұрын
@@CodeBand no, i have the same problem and i have imported all we need
@mbuagbor34824 жыл бұрын
how can i use the jquery offline
@CodeBand4 жыл бұрын
You can just download the cdn file and paste it locally...then in script src change it to the local path...
@mbuagbor34824 жыл бұрын
@@CodeBand ok i figure it out already, thanks for the video it really help but does not work well with bootstrap
@mbuagbor34824 жыл бұрын
can you help me with that ?
@CodeBand4 жыл бұрын
@@mbuagbor3482 Glad to hear that...and with Bootstrap also, it will work fine...
@CodeBand4 жыл бұрын
@@mbuagbor3482 Bootstrap classes would work fine, I believe...Please let me know the issue you are facing when integrating Bootstrap..😊
@akashtyagi71824 жыл бұрын
I am passing list as context on my form page, but when I try to use it like this: ``` $( function() { $( "#mylist" ).autocomplete({ source: {{mylist}} }); } ); ``` It gives me error as {{}} creates error. How do I pass my context data ?
@CodeBand4 жыл бұрын
{{ }} this should work probably. By the way, I didn't quite get your question...
@akashtyagi71824 жыл бұрын
@@CodeBand It doesn't work within . Way around is create variable as var newlist = {{mylist}} and then use 'newlist' variable in script
@AnjaliSingh-bg7gx4 жыл бұрын
Bro the url given to the view function gives error
@CodeBand4 жыл бұрын
Please show me the error console, so that I could figure it out. Also, feel free to join Code Band Community groups in WhatsApp and Telegram, if possible so that you can ask the queries with screenshots. WhatsApp: lnkd.in/gJ-rrrz Telegram: t.me/codebandcommunity