Hi Guys! Here is the source code for this project: github.com/hellopyplane/Live-search-using-django-javascript
@vidhyanipin2 жыл бұрын
Hi how to search for images in the database. Like admin can search for users by giving profile pic
@invisiblehumor2 жыл бұрын
Thanks
@Tanya-ut7zs4 жыл бұрын
Thanks. This is the first time I tried using Js in django using your video! :)
@coder45514 жыл бұрын
Grt video sir. I am almost everytime first in your videos.
@Pyplane4 жыл бұрын
Hi Coder ! I'm very grateful for your support :) Thank you!
@JustPython Жыл бұрын
Fantastic video for learning
@stevenha37523 жыл бұрын
Amazingly simple! Thank you.
@armaanalam652 жыл бұрын
Amazing simple thank you......
@dhruvilshah90984 жыл бұрын
Awesome sir liking your content very much
@Pyplane4 жыл бұрын
Thank you!
@old48272 жыл бұрын
Thanks a lot! Nice and simple
@yashrastogi37264 жыл бұрын
how to filter on the basis of two attributes in Js ? like i have first_name and last_name as seperate attributes and i want to perform search on it
@anirudhk61092 жыл бұрын
great video
@yukselbastan46873 жыл бұрын
great work Lucas, many thanks. But I tryed in my Post model where date ar in too and I think it is a problem for json (Object of type date is not JSON serializable). I think ş must find somethink else.
@Adroit9313 жыл бұрын
it's simply solution to your views add default=str, like that -> json.dumps(list(Model.objects.values()), default=str)
@georgesmith30223 жыл бұрын
this is not live search, since you download all the objects. It is live filtering. However, if you have thousands of objects you would exhaust all available memory. What you should do a new ajax query each time a keyup event is registered and returning the first 10 results
@bharathr59363 жыл бұрын
Your are simply great
@vasudevareddy50284 жыл бұрын
Nice sir..keep going,keep posting videos in and around Django..Ur Awesome sir :)
@Pyplane4 жыл бұрын
Thank you Vasudeva!
@vasudevareddy50284 жыл бұрын
What is the extension in VSCode that ur using for organizing Jinja2 code ?
@Pyplane4 жыл бұрын
Django by roberth solis
@vasudevareddy50284 жыл бұрын
@@Pyplane thanks sir :)
@DevsLikeUs4 жыл бұрын
Great tutorial, thank you.
@bharathparupati94264 жыл бұрын
Once again....made ur mark luke👍
@Pyplane4 жыл бұрын
Hi Bharath. It’s good to see that you are still here :) Cheers!
@liveinpeaceplease4 жыл бұрын
Nice keep more coming 👍
@Pyplane4 жыл бұрын
Thank you!
@ahmedkhairy4823 жыл бұрын
Thanks for the great tutorial. I have a question how do I add more complex Django HTML for example {{item.get_absolute_url}} ?
@delllatitude2994 жыл бұрын
hi nice tutorial, can we get little bit advance of it. like searching and showing a spinner while getting data from database using ajax, and get results as drop-down on search box when we click on any search item it will go to that post. i hope i tell clearly. Thanks
@Pyplane4 жыл бұрын
Hi. I'll think about it. Those videos on django with javascript have cool statistics so I think I'll make a few more on this :)
@delllatitude2994 жыл бұрын
@@Pyplane yes please. because i have done this task in datatables which is quite straight forward but i want custom search/autocomplete. Thanks
@everything52404 жыл бұрын
as always superb! TEACHER, can we do CRUD operations on single template?
@Pyplane4 жыл бұрын
Yes, shouldn’t be a problem :) for update and delete you can use modals to display the form or confirm delete
@yevgenletin55312 жыл бұрын
thanks
@TURKISTONIM23 жыл бұрын
it is JS bro we need django own search filter can you ??????
@LouisAgyapong4 жыл бұрын
Great video. Can you do something on formsets. Like adding forms dynamically to a django formset with javascript.
@Pyplane4 жыл бұрын
Hi Louis. Thanks for watching, for the comment & for the suggestion. I have already planned 4 additional videos to this series on django and js, but I'll also consider your idea. Cheers!
@ismailashraq96974 жыл бұрын
Will this method cause memory overhead when searching in a large database? Lets say 10k?
@georgesmith30223 жыл бұрын
of course it will, it is live filtering, not live searching. He should do a new search each time a key up is registered and return only 10 results
@ismailashraq96973 жыл бұрын
@@georgesmith3022 Ive managed to do it efficiently.
@mehedihasanpiash8083 жыл бұрын
@@ismailashraq9697 How?
@diescatric45592 жыл бұрын
I got Object of type datetime is not JSON serializable because I have one of attribute is DateTimeField i'm not sure how I can fix this
@omarfateh18074 жыл бұрын
When I click on one of the results, is it possible to go the page of the item directly without hitting the search button , like Instagram search ? and how to customize the results , for example adding an image ?
@Pyplane4 жыл бұрын
I’m not sure I understand - we don’t have a search button here. Customize it however you want inside the for loop and in the innerHTML
@aryakurdo17064 жыл бұрын
Hi thx btw its great tutorial, but is this safe for security I don't think this is that safe
@nastygambler25224 жыл бұрын
Mee too i like python and i like tesla... 😁😁 (0:26)
@mehedihasanpiash8083 жыл бұрын
How to mark/highlight the matched word at the same time while searching?
@TheDinua Жыл бұрын
How to pass inside js code?
@KrishnaManohar80214 жыл бұрын
👌
@duttybwoy5562 жыл бұрын
hey where is that box variable coming from????🙄🤔🤔🤔😠 you haven't made a variable that goes like ' let box =document. getElement........' and you haven't done it at all at no point in time , i even checked the base.html file to see if it was there or something because I was literally going crazy trying to find out why that box variable is coming from nowhere and still works, but I couldn't find that variable anywhere..... So it's so confusing and annoying!!!! where does such box-variable come from which is not defined and still works!!!!! ????????????? whereeee? 🤔😡
@OxMiroslav4 жыл бұрын
Please, can you share your code (link to github)?
@OxMiroslav4 жыл бұрын
sorry, this request is already there. Please, ignore.
@eugenetuyizere88574 жыл бұрын
Can you share the codes please?
@Pyplane4 жыл бұрын
I can't do it at this moment, but later I will upload it to github if you guys need it. Cheers
@eugenetuyizere52314 жыл бұрын
@@Pyplane Thank you very much. I struggled to use this kind of search. But also need a hint to do in your code so that I can search through different columns in a table instead of a single column
@Pyplane4 жыл бұрын
Eugene TUYIZERE hi, if you need a hint it will be to add an additional condition for the text that we type. Here we are only looking at the name, but we could also take a look description. Good luck