Тёмный
Red Eyed Coder Club
Red Eyed Coder Club
Red Eyed Coder Club
Подписаться
Welcome to the Red Eyed Coder Club channel. This channel is focused on creating videos and tutorials about Python development! Thank you for subscribing!
Intro to Python Mocks | Python tutorial
18:42
2 года назад
Комментарии
@user-vm5ci8ed4j
@user-vm5ci8ed4j 5 дней назад
Great tutorial! thank you for that
@franco_bsnss7482
@franco_bsnss7482 6 дней назад
Bro you just took the job of the Usestates in React..
@jesseinit
@jesseinit 17 дней назад
This doesn't work on version 1.22
@aashrayzaveri9510
@aashrayzaveri9510 25 дней назад
Great explanation. Was struggling with the concept. Now I am confident with the topic
@thiagom5195
@thiagom5195 26 дней назад
I think that this is not a good python code, when do in python range(2, 250001) it will create a list with each element from 2 to 250001 before do the "for". this create a horrible performace code.
@digitalmachine0101
@digitalmachine0101 29 дней назад
Good information
@radianiasacademy8454
@radianiasacademy8454 Месяц назад
Could you please explain how to deploy an vue django app to a live server/ shared hosting?
@andreasmoller1884
@andreasmoller1884 Месяц назад
{}
@ilyasbayramov5324
@ilyasbayramov5324 Месяц назад
Fake video. True video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bzekmU7HN_0.html
@ygr4943
@ygr4943 Месяц назад
شكرا ❤❤
@ygr4943
@ygr4943 Месяц назад
شكرا ❤❤
@rxlvnd3397
@rxlvnd3397 Месяц назад
Just what i needed! Simple & short, thank you!
@najmulsharifworld
@najmulsharifworld Месяц назад
hi boss , how to import the document under the function ? def on_click(e): ul = document.getElementById('left') ul.innerHTML = 'Hello world'
@balaraju4981
@balaraju4981 Месяц назад
thanks for help
@chrikke
@chrikke Месяц назад
if a benchmark shows golang being slower, there is probably something wrong with the test.
@coyoteclan480
@coyoteclan480 Месяц назад
I also use Xubuntu
@user-vu9dl3vn7l
@user-vu9dl3vn7l Месяц назад
Thanks a lot for this great video! ❤
@federicobau8651
@federicobau8651 Месяц назад
I think this videos is a troll (I hope). For the comment section i think people are extremely confused and are not real developers
@sinterusde8869
@sinterusde8869 Месяц назад
Shots fired
@wiono
@wiono Месяц назад
in order to share a python solution create a virtual environment and install all packages to it. Everything will be in one folder. Compress it and sent to someone.
@philnikitin657
@philnikitin657 Месяц назад
Большое спасибо! Очень понятно.
@ThabeloManeta
@ThabeloManeta Месяц назад
Sir what if my view does a long calls like 2 minutes, and the other user want to request to the same view. how do i implement the thread cause it is doing this sequentially
@Bholu420
@Bholu420 Месяц назад
Nice tutorial
@Mau5trakt
@Mau5trakt Месяц назад
I'm on windows and i got the following issues but i was able to fix them. (Using redis from docker) #1: in the settings.py file change the variable name 'celery_broker_url' to 'CELERY_BROKER_URL' #2 if the celery -A ytDjangoChannels2 worker -l INFO doesn't print the Chuck norris quote install the eventlet library (pip install eventlet ) then add -P eventlet to the command. remaining as follows: celery -A ytDjangoChannels2 worker -l INFO -P eventlet pd: ytDjangoChannels2 is the name of my Django project Eddited: ok i had finished but the websocket doesn't receive the message only was conected so i tried a lot of things but was able to do it. First of all STOP THE CELERY COMMANDS AND LAUNCH IT TILL THE END. It could be a little obvious but when was the part of running the first time i let it and then i was trying to get the response of the web socet but i didn't had loaded the changes. i reloaded the two commands. Then i was reading a django channels tutorials and in its, the socket.onmessage method got a validation socket.onmessage = (event) => { console.log(event) const data = JSON.parse(event.data) if (data.type === 'send_joke' ){ console.log(data) document.querySelector('#jokes').innerText = data.message } and, in my consumers.py async def send_joke(self, event): text_message = event['text'] await self.send(text_data=json.dumps({ 'type': 'send_joke', 'message': text_message, })) then i was getting an error in the celery -A ytDjangoChannels2 worker -l INFO -P eventlet command which says async_to_sync(channel_layer.group_send(('jokes', {'type': 'send_joke', 'text': joke}))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: RedisChannelLayer.group_send() missing 1 required positional argument: 'message' then in my tasks.py i only add the variable async_to_sync(channel_layer.group_send)('jokes', message={'type': 'send_joke', 'text': joke}) which is the missing argument.
@youtraders
@youtraders Месяц назад
Tanks verymuch im need getme 😢IM not found find all content
@arthurlee7280
@arthurlee7280 Месяц назад
523871cdf88301b8317aaaea5e21b221ad20b7f6: 523871cdf88301b8317aaaea5e21b221ad20b7f6 sessid: f1ca4119d026719e398a57cf9f931740 login: login password: blabla request_type: auth помогите как решить это? откуда мне взять sesid и 523871cdf88301b8317aaaea5e21b221ad20b7f6 Причем 523871cdf88301b8317aaaea5e21b221ad20b7f6 разный
@lucassola1509
@lucassola1509 Месяц назад
thank you bro!
@XiaoweiChen-hr3vh
@XiaoweiChen-hr3vh 2 месяца назад
import is such a tricky concept in golang, I've been struggling this for a whole day. appreciate your video
@alien432hz9
@alien432hz9 2 месяца назад
Javascript comes from the island of Java.
@akshayas5402
@akshayas5402 2 месяца назад
Thank you. The mocking videos are so informative
@NH-ij8dz
@NH-ij8dz 2 месяца назад
On a i5 10600k and using multi processing you can get this down to 25 seconds on python. If you use pypy's Jit you can get it down to below 5s. def process(): """Splits the task into multiple parts""" current_min = 2 tasks_per_worker = 250001 // 12 tasks = [] for _ in range(12): tasks.append( multiprocessing.Process( target=, args=(current_min, current_min + tasks_per_worker) ) ) current_min += tasks_per_worker # Start and await tasks. for task in tasks: task.start() for task in tasks: task.join()
@florinbujoreanu1020
@florinbujoreanu1020 2 месяца назад
Only 1 of your videos brings more value than other tutorial youtubers tens of videos. I am so happy to re-discover your channel.
@florinbujoreanu1020
@florinbujoreanu1020 2 месяца назад
Perfect explanation, this man is teaching us how to fish, unlike the others. I have no words of gratitude.
@florinbujoreanu1020
@florinbujoreanu1020 2 месяца назад
TOP NOTCH! Bravo!
@florinbujoreanu1020
@florinbujoreanu1020 2 месяца назад
Most kivy tutorials on youtube have the exact same content, making me think they just copy the official documentation or other videos, but this guy really does know kivy.
@deveshchoudhary121
@deveshchoudhary121 2 месяца назад
Thank you sir, u solved my doubt .
@edsanville
@edsanville 2 месяца назад
I got 15 PhDs in rocket science and brain surgery, so I could create and distribute a python package.
@arun-poudel
@arun-poudel 2 месяца назад
Mojo is comming 🔥🔥🔥🔥🔥
@albumin30days90
@albumin30days90 2 месяца назад
never use loops in python rule #1 of 1 rules
@scarecrow9459
@scarecrow9459 2 месяца назад
Thanks! Was very helpfull. My FQW is safe now!)!)
@guga-araujo
@guga-araujo 2 месяца назад
Woww!! And does /admin/ work as expected?
@matvey8374
@matvey8374 2 месяца назад
Very good video, helped me with oauth2.0
@JohnJohnson-ch6xq
@JohnJohnson-ch6xq 2 месяца назад
I have been studying for cloud computing. I want to know if I should consider JavaScript or Python? Please advise.
@madebyabhi12
@madebyabhi12 2 месяца назад
Javascript
@RoomOfClouds
@RoomOfClouds 2 месяца назад
Thank you! Responses package is so much easier to test requests package. It was very easy to test urllib3 Retry mechanism.
@RunItUp23k
@RunItUp23k 2 месяца назад
очень просто и не требует установки библиотек
@NewLondonMarshall
@NewLondonMarshall 2 месяца назад
The code formatting on the JavaScript side hurt me. No spaces in the for loop variable declaration check and increment, no space between the closing parenthesis and the opening curly brace. Ouch
@smash3689
@smash3689 Месяц назад
You can write however you want. Blame the op. If you want to force some formatting, use linter.
@botfly7444
@botfly7444 2 месяца назад
thx for the tutorial, however i don't understand how to test the response.raise_for_status() instance in the try-block in main.py, can u explain to me?
@zaemiel
@zaemiel 2 месяца назад
It's the video #3, have you seen the first two?
@botfly7444
@botfly7444 2 месяца назад
i did it today, how can i test an exception raise ? instesad of return 'some_text' how can i test through the responses methods the reaise HTTPError for example?
@labibchy6317
@labibchy6317 2 месяца назад
Hey mate where i can get free api endpoint? in CMC its currently pricy
@jesusdelarua5995
@jesusdelarua5995 2 месяца назад
Great explanation.
@Aravindudhaya
@Aravindudhaya 2 месяца назад
Python execution speed very slow. Any way both technologies to have know our holding our jobs.