- Видео 6
- Просмотров 82 337
Beyond Database
Добавлен 16 июн 2013
Should You ALWAYS Use List Comprehension In Python?
In this video we explore the efficiency of list comprehensions, the classic for loops, and map function. Whether you're a seasoned developer or just starting your Python adventure, we've got tips, tricks, and real-world examples to boost your coding game!
Discover the trade-offs, performance considerations, and choose the approach that suits your coding style.
🔗 #python #codingtips #programming
Discover the trade-offs, performance considerations, and choose the approach that suits your coding style.
🔗 #python #codingtips #programming
Просмотров: 2 580
Видео
How Do I Use Python To Scrape Jobs From Reddit
Просмотров 3013 года назад
In this video I scrape Job submissions from r/forhire, r/jobbit and r/jobopenings subreddits. I use PRAW library. You can find the projects code here: github.com/alicmp/job-hunter You are more than welcome to modify the bot and find your prefered jobs. If you have any questions feel free to contact us at hi@webkar.xyz
Build Real Time Notification With Django Channels In 5 Minutes
Просмотров 52 тыс.3 года назад
In this video we are creating a simple notification system with Django to demonstrate how django channels works. Setup Django & Postgres with Docker Tutorial: ruclips.net/video/sthCUcw5Zog/видео.html
Django & Postgres with Docker Best Practices
Просмотров 17 тыс.3 года назад
In this video we are configuring django & postgres with docker in both development and production environment. I also give you some best practices in docker. Here is the github repo of this project: github.com/alicmp/djnago-postgres-docker-starter Here You can read more about some of the topics which i talked about in the video: docs.docker.com/engine/install/ubuntu/ docs.docker.com/compose/ins...
Fast Search API with Django & Elasticsearch
Просмотров 9 тыс.3 года назад
In this video first we configure django and elasticsearch with docker, After that we are using elasticsearch to create a fast search api.
Create Search API with Django Using Reduce Method
Просмотров 8523 года назад
In this video first we implement a simple search API by modifying get_queryset method, after that we use reduce method to make our API a more powerful.
Great video.
HEY GUYS WELCOME TO MY VIDEO IM GOING TO START OFF BY USING CODE IVE ALREADY MADE GOODLUCK
Hi. Thanks for the great video. Can you suggest where to look for effective tutorial on how to setup Django to run on Could SQL? Or make a video yourself about this?
داداش ایرانی سلام😂
داداش کامیونیتی فارسی هم اونقدری بد نیست که داری اینگلیسی ریکورد میکنی
well well, that was helpful.
If performance is important, I'd go with numpy.
I'm new to programming and using generators with database in case the data comes one day to be large. my question is isn't it always good to go with does the performance matter as big YES like why we even need to consider another approach?
if u are working with large data its a thread/process pool excuter with a map if its not parlalizble then save it to memory/push to db inside a for loop if its something like an np array or pytorch tensor try and use the package build in operations the rest is allways comprehention except if u r working with non python people
I honestly don't think there's ever a scenario where the cumulative effect of the savings through list comprehensions outweighs the costs of code that is harder to maintain. Dev time is usually more expensive than CPU time and code that is harder to read can significantly increase dev time. You would have to have quite a lot of these loops in your code or really really large arrays to go through to make this effect be noticeable. But that in itself is a code smell and shows that you probably need to use different tools to solve your problem like just using numpy.square(array), which is probably 20 times faster than all of the alternatives.
The "Is performance important" diamond should be further up the tree, where the other branch is C++, but now I'm just being rude.
Haha, fair point! Absolutely, it's all about context. While list comprehension in Python can offer great readability and convenience, performance considerations may lead some to explore languages like C++. It's a trade-off between ease of development and raw speed. Although if you go with python you wouldn't want your code freezing unexpectedly!
ya if u need preformance in raw python stuff went horibly wrong. we have c# java go for a reason...
There is Libraries in C++ to create module for python too if you need more speed for a particular task it can be quiet useful
Welcome back 🎉
Thanks bro!
Simplified Real-time Chat App Django Channels + Websockets and User Authentication ruclips.net/video/SWivHeitpk0/видео.html
Thank you
can you provide repo?
@Beyond Datbase. I don't understand that you still put the database in a docker container in the production compose file. Because you say it by yourself that it is not wise to put a database in a docker container in production. So we can omit the database container in production?
Why would you advice against creating nginx in production. The excuse you gave is a very poor one.
how i can use permission_classes in doucumentViewSet, when i send jwt token in request, view return 500 error
Thanks so much for your explanations. However, I would like to see you make video on how to connect the containerised django app with a locally running instance of postgres database.
I don't understand any of the concepts used but nice video
محتوای خیلی خوبی بود ولی لحن انگلیسی خوبی نداشتین. اینو میگم که بهتر و بهتر بشین و موفقیت تونو ببینم. ساب کردم
which vscode color theme you are using ?
You simply have to not provided the html code or starting project link 😂
please do a video where u code about -Time on site -Pages per visit. -Bounce rate -Returning visitors for admin analytics reports i am new to django and this things are advance
ro englisit car kon aberomono bordi. in jomle ke gofti "we don't use docker in production" az koja ovordi???🤭
tnx
Thanks man
Good job!
great content , thank you
docker is obligate ?
no
im having Connection error wher running python manage.py search_index --rebuild command. Have some one any solutions? Thank you in advance)
it would be nice if you left the git repository
Really good. Thanks
Fantastic! Very helpful. What I don't understand and how to distribute it, for example, on Linode, DigitalOcean or similar?
After following the whole tutorial :( you said Docker is not recommended..
That's not what he said. He said that Docker added a layer of complexity and in production it might be better to use RDS for Postgresql. He seems to be implying that Django and Gunicorn should run in Docker but Nginx and Postgresql should not.
@@ernestezis9526 He was actually talking about nginx, which I think is a bad advice from his part.
He usee gunicorn, how does static files get solved without nginx then, is he amatuer? Or am i?
With your setup i could configure nginx on the host machine so that i could even have multiple apps running on dockercontainers right?
This was really cool tutorial, it was super fast and just talked about important things, not wasting time on coding. Thank you very much
Thanks for the video, you cleared a lot of my confusion.
I realy like what you're doing. it help me to be more performant on django.
You saved my life!!!!
I was doing docker wrong! :D Thanks a lot for showing best practices!
hello sir please make a video django vue auth with email verification and reset password.
hello sir , can you please make a full tutorial video djago vue full authentication system with email verification and password reset. thank you
There is actually a wrong video link in the description, the correct one should be: ruclips.net/video/4wdNx2j1j-w/видео.html
Great video man! Straight to the point using the KISS principle.
Thanks. But how could I implemet DocumentViewSet with frontend input. I can't realize... because don't see where is out indicating id or name as q or something else as GET.get('q'). COuld you help?
Hey can you provide us the github repo with the code so we can run it locally and learn from it? Thank you so much!
That is so helpful and time saving. Thanks