I have been through many react and django courses. But you are the best by far. Easy explanations and clean coding style. Hats off to you man!
@programmingpersistence57163 жыл бұрын
yeah he is good
@queenfrimpong67883 жыл бұрын
I actually gave myself a pat on the back like Tim told us to. :)
@shawnbeans73893 жыл бұрын
6:08 tim: thats what django was trying to tell us to do captions: thats what jane was trying to tell us to do
@mskyba3 жыл бұрын
@Kelvin Jack are you guys the same people behind the InstaPwn scam, there's always two people involved
@parthkabra88803 жыл бұрын
I tried learning python's django a lot of time and got to understand nothing, so left everytime... But learnt react js and mastered it! Now i am not gonna leave this anytime and apply it to my react js and react native applications ! Thanks a lot needed indeed!
@JoaoCoelho02 жыл бұрын
This video is pure gold, even 2 years after it was created. Thank you so much!
@ytbook9639 Жыл бұрын
Bro please help me with react routing system because the one used in the video is outdatet how do i fix it it shows nothing on my page
@ruksharalam173 Жыл бұрын
Clear, concise, the audio is high quality,
@hungdoan91484 жыл бұрын
The "pylint Path" killed me for like an hour!
@brydenbarbee45284 жыл бұрын
This was helpful to me stackoverflow.com/questions/62473201/how-do-i-enable-pylint-in-vscode
@victoritodo7544 Жыл бұрын
Hi Tim, thanks so much for this tutorial. It covers a whole lot about React and Django! Really helpful!
@CompSciCentral4 жыл бұрын
I love that these are sponsored by AlgoExpert. You and Clement are my goals :D
@yas14674 жыл бұрын
I love this series!! pls do more web apps with python & javascript!
@hareee234 Жыл бұрын
small change as of AUG 2023, it is now required to explicitly state all fields of the associated model will be included in the serializer with `fields = '__all__'`
@lebronpookieАй бұрын
i know its been a year since the comment, but can you go more in depth of what you mean? thanks
@JoeyJurjens4 жыл бұрын
Room.objects.filter(code=code).exists() is a method specifically designed to check if it exists or not. In your serializer, you can also do; fields = ‘__all__’ Cool video series btw!
@behjaf4 жыл бұрын
can you please explain it more ? please write a full code
@JoeyJurjens4 жыл бұрын
@@behjaf Well, the way Tim is checking if a room exists (when creating a random code), he does: Room.objects.filter(code=code).count() == 0. While the django way would be: if not Room.objects.filter(code=code).exists() And for the second thing, he enters fields one by one now. While if you want all fields to be used, you can do fields = “__all__” instead.
@behjaf4 жыл бұрын
@@JoeyJurjens thank you Joey😇
@surya_ch38094 жыл бұрын
@Shifa Shaikh misspell at max_length
@varunpusarla3 жыл бұрын
Phew! Thanks man. I had a hard time getting this.
@pipe31944 жыл бұрын
Loving the serie! 🚀
@tahalyousfi4 жыл бұрын
Excellent video Tim love your content keep going bro
@lyteral74 жыл бұрын
I haven't been able to makemigrations successfully after creating the model Room.. Each time i run the commands at 9:23 it gives me the output: No changes detected Have tried deleting my migrations and doing again as suggested elsewhere, but this does not seem to fix the problem.. Any help or suggestions are appreciated.. EDIT : I managed to fix the issue.. For anyone else who had this same issue and got OperationalError later, try making an empty folder named migrations in the api folder and then make an empty __init__.py file and then try makemigrations, migrate and finally runserver..
@САМГАДсамгадович4 жыл бұрын
usualli it happens bd you forget to add your app in settings of your project
@therandom20324 жыл бұрын
Thank You so much, this is exactly what happened to me and it worked
@luzestelalizarragacortez26424 жыл бұрын
@@САМГАДсамгадович Thank you so much, I got stuck with this a lot
@drewskiiiiiiiii3 жыл бұрын
These videos are fantastic. Thank you!
@salal_guitar55832 жыл бұрын
Super helpful! Thank you for this series!
@maransowthrikalailingam97964 жыл бұрын
Instead of mentioning all the fields (one by one) in Meta class, you can simply put fields = '__all__'
@ishanpokhrel59724 жыл бұрын
Thanks man saved me a lot a time
@jimshapedcoding4 жыл бұрын
Could that been done this way by purpose? Maybe he will move some of the fields under the variable of read_only_fields in the future so it will be easier to just cut and paste those.
@KopfKino9014 жыл бұрын
Didn't he list them all because he wanted to have the possibility of adding a custom 'id' one ?
@AshrafFaris4 жыл бұрын
@@KopfKino901 No even if he used '__all__' the id will be added too
@maransowthrikalailingam97964 жыл бұрын
are you serious?
@Cubie3D4 жыл бұрын
it would be better if u can explain serializer and rest framework.
@ShanakaMadhushan-cw8rh10 ай бұрын
greate job sir thanks
@fabu3244 жыл бұрын
Your tutorials are always perfect and include everything I want to learn and need. Just a very big thankyou again!!!❤️
@vikramnayyar27524 жыл бұрын
As someone who has been binging React builds recently but is better at Python (for vanilla coding, Python > Vanilla JavaScript), this series is PERFECT for me!!! Keep up the good work Tim!
@johnkriervillanueva51123 жыл бұрын
This is sooo helpful Tim! I'm literally crying right now bc you solved my problems 💮
@warka94944 жыл бұрын
i wonder Why would anybody dislike this video? Thanks Tim for this tutorial
@samcodes29124 жыл бұрын
for sure by mistake
@dell45593 жыл бұрын
I am getting an Error in 16:30 Can anyone please help me??? Error As :- 'TodoView' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.
@galaxy_apollo134 жыл бұрын
Hey Tim, I just want to thank you again for making these videos. I watched almost all of your videos and learned various programming concepts from you. Keep up your good work on your youtube channel. You deserve at least 1 million subscribers.
@TechWithTim4 жыл бұрын
You're very welcome!
@benhafsailhem6930 Жыл бұрын
Awesome tutorial!
@entername29544 жыл бұрын
Can someone help me pleas. I keep getting an error in the models.py file. The error is referring to the if statement in the generate_unique_code() funtion at 8:58. invalid syntax (, line 15) pylint(syntax-error) [15,56]
@austonlarson65634 жыл бұрын
I believe the issue is that he is using an assignment operator "=", when he should be using a comparison operator "==". So the code should read: if Room.objects.filter(code==code).count() == 0:
@entername29544 жыл бұрын
@@austonlarson6563 This solved the problem. Thanks a lot!!
@toufiqulislamimran79114 жыл бұрын
i just finished the part 1....and you uploaded the part 2....i thought i have to wait for it ....but its here now ....thanks bro
@behjaf4 жыл бұрын
Thank you. thank you. thank you. keep going
@МихаилМиронов-т2р2 жыл бұрын
12:28 you can just type "__all__" to avoid typing out all the fields manually if i am not mistaken
@MagicByIzzy4 жыл бұрын
Thx Tim really cool! Love your vids
@Heresjaken4 жыл бұрын
Damn, got to video 2 and realized they are only just now getting released.... Will be keen to watch the rest. This is a very good tutorial, very straight forward.
@samcodes29124 жыл бұрын
yes really detailed
@abdallahkhalaf89734 жыл бұрын
i liked this video it's my first time using rest framework thanks
@GirolamoSavonarolaKDM3 жыл бұрын
Hi Tim! Thank you for this great tutorial! Just curious, any reasons why you mentioned in 5:58 that models should be 'fat' and views should be 'thin'? My current practice is keeping the heavy logic in the views rather than models.
@dawid_dahl3 жыл бұрын
I was also surprised by this and would like to know more about that reasoning.
@luketrop94313 жыл бұрын
same
@roymarshall_2 жыл бұрын
I believe its to keep functionality that is related to data as close to that data as possible, instead of spread out
@monicapn-f1p3 жыл бұрын
these videos are the best
@aadityamunjal78614 жыл бұрын
Appriciate you videos Tim! Can your next Time out with Tim be with thenewboston since Bucky's back? Thanks.
@CompSciCentral4 жыл бұрын
I second this! I got started on Bucky!
@rayaanibrahim48084 жыл бұрын
That’s lit 🔥 man keep going
@omaribrahim1804 жыл бұрын
Uh 😒 what do u mean rayaan
@rayaanibrahim48084 жыл бұрын
🔥 lit means cool and fire
@pedrostanzani22384 жыл бұрын
Awesome tutorials Tim, keep 'em coming! Regards from Brazil!
@victoralmeida4142 жыл бұрын
Hey man! Brazil here as well! I'm trying to learn how to code, it has been a Journey full of challenges but I'll get there!
@kauasteliano62924 жыл бұрын
Your tutorials are getting better every day, congratulations man, You have an awesome yt channel :D
@mshimanshu10004 жыл бұрын
Thank's tim ..... ! ..... your video's are really helpful
@gladsonsebastian44644 жыл бұрын
Most of students having a doubt that, Did we stick to just one programming language or learning multiple languages helps us in the future.With python what types of jobs can I'm able to apply.If you do a video about this that would be really helpful.
@migueldomingos45704 жыл бұрын
My advice is learning at least two languages of higher level and then learn a lower level language. This will give you a good understanding of computer science in my humble opinion. More related to the topic of this video python django and javascript react are a a amazing combo to make websites and web apps. But i would also recommend trying the mern stack(mongo db- no sql database; express - javascript backend framework; react; n - nodejs - javascript runtime to run javascript outside the browser). Or a more enterprise stack is java swing for the backend and angular(javascript framework similiar to react(@ben awad please dont kill me)).
@gladsonsebastian44644 жыл бұрын
@@migueldomingos4570 Thank you very much sir, for spending your valuable time for me ♥️.
@migueldomingos45704 жыл бұрын
@@gladsonsebastian4464 You are welcome and good luck with your KZbin journey
@brydenbarbee45284 жыл бұрын
Trying to make migrations at about 15:20 but getting an error of ModuleNotFoundError: No module named 'api.serlializer'. Anyone else getting this error or know what the fix might be?
@nomadntribe54314 жыл бұрын
same error here, sadly no answer
@punk_08 Жыл бұрын
7:42 : I think there is a django model method that allows you to generate an ID to the model, why did't you use it ?
@kanharusia93994 жыл бұрын
Hello Tim Some things I want to learn are : 1. Logging System with 2 views administrator privileges and Customer privilages. 2. Upload Image for example change profile picture. Thanks Ankit Rusia
@amanborse89684 жыл бұрын
Use roles or groups for Logging System with 2 views administrator privileges and Customer privilages..
@ebrahimsattar4864 жыл бұрын
Thanks Tim! You are the best!
@fojirngers36614 жыл бұрын
Finally please keep going. Love your tutorials bro
@RedionXhepa3 жыл бұрын
Nice job !
@tanmaydeshpande4 жыл бұрын
Amazing tutorials as always Tim! I have been subscribed for a year now and have learnt so much from you! Thank you for these videos
@ilyesnegadi54222 жыл бұрын
We can use uuid to generate unique token for the room we just have to redfine the init function to call the function how handle this
@normn0 Жыл бұрын
@Tim I had Codeium autocomplete on (similar to Tabnine or Github Copilot) and after a few lines it started predicting every block I was about to type with 100% accuracy. That means your code is in the GPT (I am pretty certain Codeium is GPT powered) database. Congratulations Tim?! Or sorry? Not sure...
@सुरेलसंवादिनी3 жыл бұрын
Template does not exist at api/home... please help
@drizer4real3 жыл бұрын
Cool video!
@itzHD4 жыл бұрын
Will you be deploying it too?
@yaxpatel4 жыл бұрын
thanks for the great videos Tim
@IgnacioChristianM4 ай бұрын
Hello Tim, I am having my Capstone Project right now together with my blockmates, can you help us give ideas regarding Information Management System?
@alfyonyango4 жыл бұрын
Hey, When you're done add the whole tutorial to a playlist. Thanks. Really Good Work!
@pedroribeiro62714 жыл бұрын
Again huge thanks for this. I wish you could do longer videos. I know you must be pretty busy.. but still 20 min every 2 or 3 days is so short :( Love the content
@samcodes29124 жыл бұрын
so true
@LimeWitness3 жыл бұрын
Timestamp: 15:04
@oruchkin3 жыл бұрын
Veryu good thank you!
@zachfenton6083 жыл бұрын
Great series but i am having a problem with the following error: "detail": "Method \"GET\" not allowed." I tried changing the setting and searched how to allow it run a get request... still need to do more searching.
@opcon31554 жыл бұрын
Who else agrees that Django is better than ruby, php and Java spring?
@opcon31554 жыл бұрын
@@mathsdev well news flash...IT IS
@Duge61243 жыл бұрын
At 9:10 for it to break when the code matches, I think it should be != instead of ==
@nowyouknow22493 жыл бұрын
He is correct. Check it again
@liorbm1 Жыл бұрын
the 'generate_unique_code' cant make problems? lets say, that it produces the same code twice in two threads that are in a race condition state. IMHO, it will be better to use 'get_or_create'. not sure of it.
@RajatGupta-lq3cb4 жыл бұрын
can someone help me? I'm getting a no such column error page when I post in Room
@talalbadreddine31553 жыл бұрын
idk if I'm late , but i think the problem here is in the serializers file in fields u may have a error of copying :)
@nikschaefer33214 жыл бұрын
If your having Issues with the Request page Add 'rest_framework' to your INSTALLED_APPS in settings.py
@alejandrolara69063 жыл бұрын
Thanks man, now it works
@simondavidvgm3 жыл бұрын
Did that, but now getting a missing argument 'app_module' on an init somewhere...
@ytbook9639 Жыл бұрын
please help me with react routing system because the one used in the video is outdatet how do i fix it it shows nothing on my page
@davidkorn5253 Жыл бұрын
tim the 🐐
@KoksMOks4 жыл бұрын
dope i hope it will be daily:D
@keno08132 жыл бұрын
When you generate unique code do you not have to call the function or will it just run by default?
@piahloco3 жыл бұрын
This error occurred to me in minute 9, line 11 = error "Class 'Room' has no 'objects' member"... help
@jordanhanley75853 жыл бұрын
did u find the fix?
@jordanhanley75853 жыл бұрын
For others - The error is actually just a warning, your program will run fine without it. If the project isn't running correctly then the issue lies elsewhere.
@amirm84204 жыл бұрын
Love you😍😍😍
@andreanonali45574 жыл бұрын
Really nice video Tim. It will be interesting seeing a GraphQL REST API I think "fat models and thin views" does not mean put the logic, but put, in models, helper method for the controller to make logic thinner.
@samcodes29124 жыл бұрын
smart suggestion
@rachit60994 жыл бұрын
was waiting for it thanks how are you doing
@PragmaticAnime Жыл бұрын
Why don't I get the form like in the video
@pilote1112 жыл бұрын
I need help! I'm not getting the form and don't know why 😭
@siddhantchavan13703 жыл бұрын
why do we need to add code and host to model?Like I have learned sql but I wouldnt add it to models? Somebody explain
@challaphanideep Жыл бұрын
Its soo good.but without generate_unique_code(): in model also its working fine; where you used this.
@I65Sports2 жыл бұрын
I’m noticing if you’re python3 you can’t put a .before the path. Is my assessment correct ???
@peidraou4 жыл бұрын
best video brother.
@set_your_heart_ablaze-4444 жыл бұрын
I am getting this error message: Traceback (most recent call last): File "c:/Users/Vinu/Downloads/React-Django/music_controller/api/serializers.py", line 2, in from .models import Room ImportError: attempted relative import with no known parent package
@kennyPAGC3 жыл бұрын
queryset.count() == 0 instead of queryset.exists(). Why?
@TechWithTim3 жыл бұрын
Just a mistake, .exists() is better
@lostc0de5553 жыл бұрын
AssertionError Class RoomSerializer missing "Meta.model" attribute ListAPIView is working but on CreateAPiView i get this error !!?? Help 🙏
@NishantCosmos2 жыл бұрын
i was gansta untill u started using apis, im noob
@andrewsessilfie93834 жыл бұрын
when am going to the room view. if if I do api/home. it does not work. but when I write just /home, then I get the view
@jamiepage30552 жыл бұрын
Hi all I doubt I will get a reply but i have been following these steps and i keep getting the error: C:\Users\Jamie\AppData\Local\Programs\Python\Python310\python.exe: can't open file 'C:\\Users\\Jamie\\music_controller\\manage.py': [Errno 2] No such file or directory . Im not sure what its for tho and i cant carry on with the project since i cant do any migrations Thank you
@thejonellwood Жыл бұрын
I can not figure out why the feildset for the form is not present in my view.... maybe one of the methods is deprecated? I would think that would create an error... any pointers. FYI I like getting errors like this because debugging is such a great way to learn..... when you can actually figure it out lol
@ShubhamSingh-uu8ci4 жыл бұрын
Hey Tim, excellent video, just had one single problem i.e I didn't get the form to input data into the db although I followed the exact same steps and even tried cloning the git repository for the particular tutorial, please help.
@shresthabasak8738 ай бұрын
facing the same issue
@kiransalve4034 жыл бұрын
please make projects on Shipping management system in django
@roymarshall_2 жыл бұрын
Why use "generics" instead of "viewsets"? Maybe this is answered later on but I was just curious
@xLaoztu2 жыл бұрын
getting this error after i try to post "OperationalError at /api/home no such column: api_room.code" *EDIT in the models host needed to have a default of none host = models.CharField(max_length=50, unique=True, default=None,)
@lorazubic98737 ай бұрын
is this app made using mvc arhitecture?
@salmanbehen43844 жыл бұрын
Ok, guys help me out here, if I learn Django, React and Mongoose do I become full-stack. If no then what do I gotta do?
@ojouniisama54014 жыл бұрын
That should be good.. You can also learn about web hosting and other stuff
@vieiraork4 жыл бұрын
Guys are heppening some errors in the code related from a class Room in models first error is in models.py line 11 in time 9:07 on if structure, second error in views.py line 10 in time 14:59 inside of class RoomView , error message below from both files: Class Room has no objects member Thanks for help and I hope you understood. In Pycharm the atribute 'objects' dosn't exist.
@migueldomingos45704 жыл бұрын
We can't know what's wrong if you don't share you're code
@DetertidforNorge4 жыл бұрын
In terminal execute "pip install pylint-django" afterwards, for VsCode: press "ctr + ," search for "pylint path", and set this to pylint_django. Im not sure how it works in Pycharm, but i guess it should be somewhat the same. This might solve your problem
@kapitankidlattv96134 жыл бұрын
@@DetertidforNorge thanks Sir! Been racking my brains on that error, the code runs, but I am a bit OC seeing red hahah Thanks again Sir!
@dumbtex61072 жыл бұрын
@@DetertidforNorge goat bro i was so confused
@swapnanilchakraborty30164 жыл бұрын
it says template doesn't exist. Please help me here. rest APIs ain't working
@GurparshadBansal4 жыл бұрын
were you able to solve this?
@GurparshadBansal4 жыл бұрын
ah, I didn't include 'rest_framework' in Installed apps in settings.py
@pietroprovinzano46294 жыл бұрын
Nice Tutorial Tim, keep going with this series. Can I use rest_framework and serializers also with angular? Thanks.
@migueldomingos45704 жыл бұрын
Sure. You just need an API made with any backend framework and then JavaScript in the front-end can call that API using something like fetch or a more framework specific fetching library. And yes angular has JSON serializers since it is a built-in feature into JavaScript itself
@abdullahfawzy95564 жыл бұрын
It came in the perfect time
@lexdevelop4 жыл бұрын
Like and hate python frameworks at the same time, i don't like how DI is handled and project structure is messy, is there any way to have each model in separate file, i mean 1 file per class, ppl call it anti patern, anything to recommend?
@avgoustisavgousti55447 ай бұрын
thanks a lot
@rraajjaannrraajjaann20374 жыл бұрын
how to fix? ImportError: cannot import name 'RoomSerializar' from 'api.serializers' (C:\Users\dell\Favorites\Desktop\python and js\music_controller\api\serializers.py) how to fix?
@TheAgathoDaemon4 жыл бұрын
Not sure about fat models, thin views I think MVC (Model-View-Controller) pattern would be better in most of situations p.s. tutorial is amazing as always, keep it up Tim! So put all business logic to the services.py for example