Django & React Tutorial #2 - Django REST Framework

This django and react tutorial covers how to use the django rest framework. We will use the django rest framework to implement a django REST API and setup some endpoints to use later in our project.
💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code "techwithtim" algoexpert.io/techwithtim
📚 Django Model Documentation: docs.djangoproject.com/en/3.1...
📝 Series Code: github.com/techwithtim/Music-...
📕 Node.js & NPM: www.npmjs.com/get-npm
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
👕 Merchandise: teespring.com/stores/tech-wit...
🔗 Social Medias 🔗
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My KZread Gear 🎬
🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
🕹 Tripod: amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): amzn.to/3oi0v8Z
☀️ Lights: amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): amzn.to/2TjXsih
💸 Donations 💸
💵 One-Time Donations: www.paypal.com/donate?hosted_...
💰 Patreon: / techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Tech With Tim
- Django and React
- Python Django
- Javascript React
- Django and React Tutorial
- React and Django Project
- Django REST Framework
- Django REST API
- REST API Django
- REST API
⭐️ Hashtags ⭐️
#Django #React #JavaScript

Пікірлер: 335

  • @queenfrimpong6788
    @queenfrimpong67883 жыл бұрын

    I actually gave myself a pat on the back like Tim told us to. :)

  • @victoritodo7544
    @victoritodo7544 Жыл бұрын

    Hi Tim, thanks so much for this tutorial. It covers a whole lot about React and Django! Really helpful!

  • @tanmoyjoy1306
    @tanmoyjoy13063 жыл бұрын

    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!

  • @programmingpersistence5716

    @programmingpersistence5716

    2 жыл бұрын

    yeah he is good

  • @parthkabra8880
    @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!

  • @drewskiiiiiiiii
    @drewskiiiiiiiii3 жыл бұрын

    These videos are fantastic. Thank you!

  • @salal_guitar5583
    @salal_guitar5583 Жыл бұрын

    Super helpful! Thank you for this series!

  • @yas1467
    @yas14673 жыл бұрын

    I love this series!! pls do more web apps with python & javascript!

  • @pipe3194
    @pipe31943 жыл бұрын

    Loving the serie! 🚀

  • @JoaoCoelho0
    @JoaoCoelho0 Жыл бұрын

    This video is pure gold, even 2 years after it was created. Thank you so much!

  • @ytbook9639

    @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
    @ruksharalam173 Жыл бұрын

    Clear, concise, the audio is high quality,

  • @MagicByIzzy
    @MagicByIzzy3 жыл бұрын

    Thx Tim really cool! Love your vids

  • @shawnbeans7389
    @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

  • @mskyba

    @mskyba

    3 жыл бұрын

    @Kelvin Jack are you guys the same people behind the InstaPwn scam, there's always two people involved

  • @benhafsailhem6930
    @benhafsailhem6930 Жыл бұрын

    Awesome tutorial!

  • @TechWithTaha
    @TechWithTaha3 жыл бұрын

    Excellent video Tim love your content keep going bro

  • @hungdoan9148
    @hungdoan91483 жыл бұрын

    The "pylint Path" killed me for like an hour!

  • @brydenbarbee4528

    @brydenbarbee4528

    3 жыл бұрын

    This was helpful to me stackoverflow.com/questions/62473201/how-do-i-enable-pylint-in-vscode

  • @behjaf
    @behjaf3 жыл бұрын

    Thank you. thank you. thank you. keep going

  • @johnkriervillanueva5112
    @johnkriervillanueva51123 жыл бұрын

    This is sooo helpful Tim! I'm literally crying right now bc you solved my problems 💮

  • @ShanakaMadhushan-cw8rh
    @ShanakaMadhushan-cw8rh4 ай бұрын

    greate job sir thanks

  • @monicapereznogueras7383
    @monicapereznogueras73832 жыл бұрын

    these videos are the best

  • @warka9494
    @warka94943 жыл бұрын

    i wonder Why would anybody dislike this video? Thanks Tim for this tutorial

  • @samcodes2912

    @samcodes2912

    3 жыл бұрын

    for sure by mistake

  • @RedionXhepa
    @RedionXhepa3 жыл бұрын

    Nice job !

  • @hareee234
    @hareee23410 ай бұрын

    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__'`

  • @abdallahkhalaf8973
    @abdallahkhalaf89733 жыл бұрын

    i liked this video it's my first time using rest framework thanks

  • @drizer4real
    @drizer4real3 жыл бұрын

    Cool video!

  • @fojirngers3661
    @fojirngers36613 жыл бұрын

    Finally please keep going. Love your tutorials bro

  • @rayaanibrahim4808
    @rayaanibrahim48083 жыл бұрын

    That’s lit 🔥 man keep going

  • @omaribrahim180

    @omaribrahim180

    3 жыл бұрын

    Uh 😒 what do u mean rayaan

  • @rayaanibrahim4808

    @rayaanibrahim4808

    3 жыл бұрын

    🔥 lit means cool and fire

  • @kauasteliano6292
    @kauasteliano62923 жыл бұрын

    Your tutorials are getting better every day, congratulations man, You have an awesome yt channel :D

  • @oruchkin
    @oruchkin2 жыл бұрын

    Veryu good thank you!

  • @JoeyJurjens
    @JoeyJurjens3 жыл бұрын

    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!

  • @behjaf

    @behjaf

    3 жыл бұрын

    can you please explain it more ? please write a full code

  • @JoeyJurjens

    @JoeyJurjens

    3 жыл бұрын

    @@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.

  • @behjaf

    @behjaf

    3 жыл бұрын

    @@JoeyJurjens thank you Joey😇

  • @surya_ch3809

    @surya_ch3809

    3 жыл бұрын

    @Shifa Shaikh misspell at max_length

  • @varunpusarla2590

    @varunpusarla2590

    3 жыл бұрын

    Phew! Thanks man. I had a hard time getting this.

  • @Heresjaken
    @Heresjaken3 жыл бұрын

    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.

  • @samcodes2912

    @samcodes2912

    3 жыл бұрын

    yes really detailed

  • @avgoustisavgousti5544
    @avgoustisavgousti5544Ай бұрын

    thanks a lot

  • @CompSciCentral
    @CompSciCentral3 жыл бұрын

    I love that these are sponsored by AlgoExpert. You and Clement are my goals :D

  • @pedrostanzani2238
    @pedrostanzani22383 жыл бұрын

    Awesome tutorials Tim, keep 'em coming! Regards from Brazil!

  • @victoralmeida414

    @victoralmeida414

    2 жыл бұрын

    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!

  • @peidraou
    @peidraou3 жыл бұрын

    best video brother.

  • @fabu324
    @fabu3243 жыл бұрын

    Your tutorials are always perfect and include everything I want to learn and need. Just a very big thankyou again!!!❤️

  • @toufiqulislamimran7911
    @toufiqulislamimran79113 жыл бұрын

    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

  • @maransowthrikalailingam9796
    @maransowthrikalailingam97963 жыл бұрын

    Instead of mentioning all the fields (one by one) in Meta class, you can simply put fields = '__all__'

  • @ishanpokhrel5972

    @ishanpokhrel5972

    3 жыл бұрын

    Thanks man saved me a lot a time

  • @jimshapedcoding

    @jimshapedcoding

    3 жыл бұрын

    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.

  • @KopfKino901

    @KopfKino901

    3 жыл бұрын

    Didn't he list them all because he wanted to have the possibility of adding a custom 'id' one ?

  • @AshrafFaris

    @AshrafFaris

    3 жыл бұрын

    @@KopfKino901 No even if he used '__all__' the id will be added too

  • @maransowthrikalailingam9796

    @maransowthrikalailingam9796

    3 жыл бұрын

    are you serious?

  • @amirm8420
    @amirm84203 жыл бұрын

    Love you😍😍😍

  • @ebrahimsattar486
    @ebrahimsattar4863 жыл бұрын

    Thanks Tim! You are the best!

  • @pedroribeiro6271
    @pedroribeiro62713 жыл бұрын

    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

  • @samcodes2912

    @samcodes2912

    3 жыл бұрын

    so true

  • @mshimanshu1000
    @mshimanshu10003 жыл бұрын

    Thank's tim ..... ! ..... your video's are really helpful

  • @Cubie3D
    @Cubie3D3 жыл бұрын

    it would be better if u can explain serializer and rest framework.

  • @yaxpatel
    @yaxpatel3 жыл бұрын

    thanks for the great videos Tim

  • @mdbarin2014
    @mdbarin20147 ай бұрын

    thanks

  • @nguyenvanhieu9589
    @nguyenvanhieu95893 жыл бұрын

    Keep your awesome

  • @KoksMOks
    @KoksMOks3 жыл бұрын

    dope i hope it will be daily:D

  • @davidkorn5253
    @davidkorn5253 Жыл бұрын

    tim the 🐐

  • @alanominatorkiborg5860
    @alanominatorkiborg58602 жыл бұрын

    Cool.

  • @galaxy_apollo13
    @galaxy_apollo133 жыл бұрын

    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.

  • @TechWithTim

    @TechWithTim

    3 жыл бұрын

    You're very welcome!

  • @vikramnayyar2752
    @vikramnayyar27523 жыл бұрын

    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!

  • @goose7453
    @goose74533 жыл бұрын

    Yay!

  • @kanharusia9399
    @kanharusia93993 жыл бұрын

    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

  • @amanborse8968

    @amanborse8968

    3 жыл бұрын

    Use roles or groups for Logging System with 2 views administrator privileges and Customer privilages..

  • @andreanonali4557
    @andreanonali45573 жыл бұрын

    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.

  • @samcodes2912

    @samcodes2912

    3 жыл бұрын

    smart suggestion

  • @tanmaydeshpande
    @tanmaydeshpande3 жыл бұрын

    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

  • @aadityamunjal7861
    @aadityamunjal78613 жыл бұрын

    Appriciate you videos Tim! Can your next Time out with Tim be with thenewboston since Bucky's back? Thanks.

  • @CompSciCentral

    @CompSciCentral

    3 жыл бұрын

    I second this! I got started on Bucky!

  • @AhmedElrefaay-cc5nh
    @AhmedElrefaay-cc5nhАй бұрын

    here!

  • @abdullahfawzy9556
    @abdullahfawzy95563 жыл бұрын

    It came in the perfect time

  • @El-Reyo
    @El-Reyo2 ай бұрын

    Done.

  • @rachit6099
    @rachit60993 жыл бұрын

    was waiting for it thanks how are you doing

  • @aishikbandyopadhyay8191
    @aishikbandyopadhyay81913 жыл бұрын

    First like, sir! Was waiting extremely eagerly for the 2nd part😀😀❤️🔥🙏

  • @rdius4822

    @rdius4822

    3 жыл бұрын

    Aaaahhhhh stop using those emojis REEEEEEEEEEEEEEE

  • @aishikbandyopadhyay8191

    @aishikbandyopadhyay8191

    3 жыл бұрын

    @@rdius4822 sorry bro, can't stop me😁

  • @rdius4822

    @rdius4822

    3 жыл бұрын

    @@aishikbandyopadhyay8191 you're using them excessively...

  • @lyteral7
    @lyteral73 жыл бұрын

    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..

  • @user-se7yq6cl2j

    @user-se7yq6cl2j

    3 жыл бұрын

    usualli it happens bd you forget to add your app in settings of your project

  • @therandom2032

    @therandom2032

    3 жыл бұрын

    Thank You so much, this is exactly what happened to me and it worked

  • @luzestelalizarragacortez2642

    @luzestelalizarragacortez2642

    3 жыл бұрын

    @@user-se7yq6cl2j Thank you so much, I got stuck with this a lot

  • @gladsonsebastian4464
    @gladsonsebastian44643 жыл бұрын

    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.

  • @migueldomingos4570

    @migueldomingos4570

    3 жыл бұрын

    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)).

  • @gladsonsebastian4464

    @gladsonsebastian4464

    3 жыл бұрын

    @@migueldomingos4570 Thank you very much sir, for spending your valuable time for me ♥️.

  • @migueldomingos4570

    @migueldomingos4570

    3 жыл бұрын

    @@gladsonsebastian4464 You are welcome and good luck with your KZread journey

  • @kiransalve403
    @kiransalve4033 жыл бұрын

    please make projects on Shipping management system in django

  • @normn0
    @normn08 ай бұрын

    @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...

  • @kavinbharathi
    @kavinbharathi3 жыл бұрын

    100th like 💯...

  • @user-uf6qe2gy2x
    @user-uf6qe2gy2x Жыл бұрын

    12:28 you can just type "__all__" to avoid typing out all the fields manually if i am not mistaken

  • @mtshgaming292
    @mtshgaming2923 жыл бұрын

    honestly before this tutorial i used php laravel which is similar but the syntax of php is disgusting im looking to switch to python django thank you tim like always

  • @kevinmontero4158
    @kevinmontero41583 жыл бұрын

    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_dahl

    @dawid_dahl

    3 жыл бұрын

    I was also surprised by this and would like to know more about that reasoning.

  • @luketrop9431

    @luketrop9431

    3 жыл бұрын

    same

  • @roymarshall_

    @roymarshall_

    2 жыл бұрын

    I believe its to keep functionality that is related to data as close to that data as possible, instead of spread out

  • @keno0813
    @keno0813 Жыл бұрын

    When you generate unique code do you not have to call the function or will it just run by default?

  • @ilyesnegadi5422
    @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

  • @RocseyXAmine
    @RocseyXAmine3 жыл бұрын

    ❤️

  • @entername2954
    @entername29543 жыл бұрын

    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]

  • @austonlarson6563

    @austonlarson6563

    3 жыл бұрын

    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:

  • @entername2954

    @entername2954

    3 жыл бұрын

    ​@@austonlarson6563 This solved the problem. Thanks a lot!!

  • @TheAgathoDaemon
    @TheAgathoDaemon3 жыл бұрын

    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

  • @pietroprovinzano4629
    @pietroprovinzano46293 жыл бұрын

    Nice Tutorial Tim, keep going with this series. Can I use rest_framework and serializers also with angular? Thanks.

  • @migueldomingos4570

    @migueldomingos4570

    3 жыл бұрын

    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

  • @RajatGupta-lq3cb
    @RajatGupta-lq3cb3 жыл бұрын

    can someone help me? I'm getting a no such column error page when I post in Room

  • @talalbadreddine3155

    @talalbadreddine3155

    3 жыл бұрын

    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 :)

  • @alfyonyango
    @alfyonyango3 жыл бұрын

    Hey, When you're done add the whole tutorial to a playlist. Thanks. Really Good Work!

  • @zachfenton608
    @zachfenton6082 жыл бұрын

    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.

  • @vinamr3945
    @vinamr39453 жыл бұрын

    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

  • @abdallahfekkai5558
    @abdallahfekkai55583 жыл бұрын

    I have a problem when i try to makemigration, it shows me this message : type object 'Room' has no attribute 'object'

  • @lyteral7

    @lyteral7

    3 жыл бұрын

    I had the same issue, but was able to fix it by doing the following: 1. Go to terminal and enter pip install pylint-django 2. Installing the pylint extension on VS Code 3. In VS Code going to Settings > User Settings and in searching through search bar for "Linting: Pylint Path" and then changing the path from pylint to pylint_django If this doesn't solve your issue, I recommend trying out the other new solutions on this stackoverflow thread : stackoverflow.com/questions/45135263/class-has-no-objects-member Really hope this helps in solving your issue..

  • @abdallahfekkai5558

    @abdallahfekkai5558

    3 жыл бұрын

    @@lyteral7 thank you so much !

  • @pranavmenon8864

    @pranavmenon8864

    3 жыл бұрын

    you just have to change your "Room.object" to "Room.objects" and it'll link it to .models automatically

  • @rishbizzbuzz

    @rishbizzbuzz

    3 жыл бұрын

    @@lyteral7 unable to perform step 2. cannot find pylint extension on vscode

  • @lyteral7

    @lyteral7

    3 жыл бұрын

    @@rishbizzbuzz Make sure your python path is set properly in vscode Try some of the newer answers here: stackoverflow.com/questions/43272664/linter-pylint-is-not-installed

  • @andrewsessilfie9383
    @andrewsessilfie93833 жыл бұрын

    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

  • @sarveshdubey9312
    @sarveshdubey93123 жыл бұрын

    As i am saving my settings.py, it is showing me an error and is not producing any link after i am running the command 'python manage.py runserver' to connect to server. Why is it so ?

  • @abdullahfawzy9556
    @abdullahfawzy95563 жыл бұрын

    Thank you

  • @ShubhamSingh-uu8ci
    @ShubhamSingh-uu8ci3 жыл бұрын

    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.

  • @shresthabasak873

    @shresthabasak873

    2 ай бұрын

    facing the same issue

  • @ytbook9639
    @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

  • @siddhantchavan1370
    @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

  • @dell4559
    @dell45592 жыл бұрын

    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.

  • @user-pp6mm5eo7d
    @user-pp6mm5eo7d3 жыл бұрын

    Template does not exist at api/home... please help

  • @itzHD
    @itzHD3 жыл бұрын

    Will you be deploying it too?

  • @cairink2110
    @cairink21103 жыл бұрын

    Which font do you use in vs code?

  • @xLaoztu
    @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,)

  • @salmanbehen4384
    @salmanbehen43843 жыл бұрын

    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?

  • @ojouniisama5401

    @ojouniisama5401

    3 жыл бұрын

    That should be good.. You can also learn about web hosting and other stuff

  • @brydenbarbee4528
    @brydenbarbee45283 жыл бұрын

    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?

  • @nomadntribe5431

    @nomadntribe5431

    3 жыл бұрын

    same error here, sadly no answer

  • @zro3698
    @zro36982 жыл бұрын

    when I remove the main def in views I get Import Error: cannot import name 'main' from 'api.views' any ideas how to fix?

  • @challaphanideep
    @challaphanideep Жыл бұрын

    Its soo good.but without generate_unique_code(): in model also its working fine; where you used this.

  • @I65Sports
    @I65Sports Жыл бұрын

    I’m noticing if you’re python3 you can’t put a .before the path. Is my assessment correct ???

  • @khandakerzoadpial453
    @khandakerzoadpial4532 жыл бұрын

    I guess if you pass the default value, in that case, you don't have to mention the null argument.

  • @Duge6124
    @Duge61243 жыл бұрын

    At 9:10 for it to break when the code matches, I think it should be != instead of ==

  • @nowyouknow2249

    @nowyouknow2249

    3 жыл бұрын

    He is correct. Check it again

  • @rraajjaannrraajjaann2037
    @rraajjaannrraajjaann20373 жыл бұрын

    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?

  • @user-bc2ec6dg4e
    @user-bc2ec6dg4e3 жыл бұрын

    I want full Django + Ajax + frontend ecommerce tutorial! There are some tutorials out there but they do not teach you things like adding items to cart without reloading page, item stock count, search bar etc.

  • @thejonellwood
    @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