Django + React JS - How To Integrate React Into Your Django Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ค. 2021
  • Simple Tutorial On How To Integrate React Into Your Django Project.
    Get A Free Python Handbook:
    www.codewithtomi.ml/p/newslet...
    If You Enjoy This Video, please subscribe to the channel
    Patreon - / tomitokko
    Newsletter - www.codewithtomi.ml/p/newslet...
    Buy me a coffee - www.buymeacoffee.com/tomitokko
    __TH-cam Gear__
    Blue Yeti Microphone (amzn.to/2OmN1vG)
    Hp Windows 10 (amzn.to/3unOkdb)
    Wireless Mouse (amzn.to/3wgOjtf)
    Homfa Computer Desk (amzn.to/3sGJ4AN)
    Mini Ring Lights (amzn.to/39xSZRJ)
    Canon EOS Camera (amzn.to/31ELVOV)
    #Django #React
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 75

  • @Nikhil-Tomar
    @Nikhil-Tomar ปีที่แล้ว +34

    For anyone wondering, this is a hybrid model of React and Django and most useful since we can make use of various features of Django like forms and much more using this method, another model is standalone where a React frontend is only shown to the user and API request are sent to our django(backend server) to retrieve data, this is a more modular approach but various usefull features of django mentioned above are not directly available.

  • @BayronPerdomo-we4ji
    @BayronPerdomo-we4ji ปีที่แล้ว +19

    Probably the easiest way to get these two to work hand in hand! Awesome tutorial.

  • @tomamore3
    @tomamore3 ปีที่แล้ว +4

    Great video dude! ...also, and this is coming from a place of love, we need to talk about your digital hoarding. We're all here for you. Everyone will pitch in and help you clean up that desktop but you have to commit to keeping it that way.

  • @TechieAmanda
    @TechieAmanda 4 หลายเดือนก่อน

    Great and simple tutorial on explaining how to set-up a project with React and Django. Exactly what I was looking for 👍

  • @parralelife
    @parralelife 8 หลายเดือนก่อน

    Thank you Tomi...you've taught me how to easily integrate Django and Reactjs. Many thanks once again!

  • @riadutta8085
    @riadutta8085 ปีที่แล้ว +7

    The best React and Django integration ❤️

  • @mage9271
    @mage9271 ปีที่แล้ว

    everything works smoothly, thanks!

  • @adithyapokharel6831
    @adithyapokharel6831 ปีที่แล้ว +5

    Thanks for the video.
    But since react routes were not working so i figured out that instead of using path using re_path is better in 8:59 so it should be re_path(r"",views.index,name="index").This will ensure that any route that cannot be handled with django is handled by react application.
    However if you have no routes in react this should work fine.

  • @AmitabhSuman
    @AmitabhSuman ปีที่แล้ว

    Perfect Tutorial !
    Thank you so much !

  • @rangabharath4253
    @rangabharath4253 3 ปีที่แล้ว +6

    awesome as always Tomi :-)

  • @hesdf5643
    @hesdf5643 ปีที่แล้ว +1

    Bro great tutorial bro thank you

  • @user-uz5rs1zy1n
    @user-uz5rs1zy1n 9 หลายเดือนก่อน

    thanks bro you just make my day

  • @ayenewyihune
    @ayenewyihune 3 ปีที่แล้ว +1

    Thanks for the video. But how would it be during development?

  • @hroman_codes
    @hroman_codes 10 หลายเดือนก่อน

    Thank you for this video 👍 I have one question: When I change my DIRS config to be ‘DIRS’: [os.path.join(BASE_DIR, ‘react app/build)]
    Will the templates I built before I added react to my project still work and render?

  • @Unloco_mas
    @Unloco_mas 3 ปีที่แล้ว +1

    Tomi, great videos bro!!

  • @joshwzr1257
    @joshwzr1257 23 วันที่ผ่านมา

    very precise. Thanks so much

  • @navidazimi7816
    @navidazimi7816 2 ปีที่แล้ว +12

    Thank you so much Tomi, This was really helpful. Can you build a small project with Django and react?
    That would be awesome 🙏

    • @CodeWithTomi
      @CodeWithTomi  2 ปีที่แล้ว +4

      Thanks for watching.
      I'll look into that

  • @phillipcroukamp1825
    @phillipcroukamp1825 ปีที่แล้ว

    Thanks a ton young master keyboard warrior 👌 works perfectly

  • @RaivisPetrovskis
    @RaivisPetrovskis ปีที่แล้ว

    Thanks, great tut 👍

  • @Memeparable
    @Memeparable 8 หลายเดือนก่อน

    You deserve much more attention

  • @ranaafaq786
    @ranaafaq786 23 วันที่ผ่านมา

    Great tutorial 😍😍

  • @lalaniwerake881
    @lalaniwerake881 9 หลายเดือนก่อน

    wonderful, thank you!

  • @raf_narok
    @raf_narok ปีที่แล้ว

    really great did you post a react + django tutorial ?

  • @bilalzeaiter9720
    @bilalzeaiter9720 11 หลายเดือนก่อน

    beautiful and simple

  • @RaushanKumar-uj2ew
    @RaushanKumar-uj2ew 5 หลายเดือนก่อน

    very helpful video to help understand how to integrate react with django

  • @brantechsyt6130
    @brantechsyt6130 3 ปีที่แล้ว +4

    great tutorial!

  • @nissioyere7822
    @nissioyere7822 หลายเดือนก่อน

    Très utile merci beaucoup.
    Le tout fonctionne

  • @RR-et6zp
    @RR-et6zp ปีที่แล้ว

    bro can you do a react tutorial for beginners please? you're a brilliant teacher, just went through the python one

  • @harshitm9888
    @harshitm9888 2 ปีที่แล้ว +3

    you are awesome brother... 👏👏👏👏

  • @sky7681
    @sky7681 ปีที่แล้ว

    Subscribed Tomi bhai🙏

  • @stivomoses8882
    @stivomoses8882 10 หลายเดือนก่อน

    Great job

  • @francomacias8904
    @francomacias8904 ปีที่แล้ว +1

    Tomi Rocks!

  • @user-gz4ix7vl9m
    @user-gz4ix7vl9m ปีที่แล้ว

    Extremely helpfull

  • @maybe_ok
    @maybe_ok ปีที่แล้ว

    thank you bro

  • @csandreas1
    @csandreas1 6 หลายเดือนก่อน

    Not sure how react renders that page, but I think you didn't render any static file, the image is an svg file. So in simple words unless you use {%load static %} and {$ static '' %} template tags, nothing will be served by django

  • @swayamsiddhanath6268
    @swayamsiddhanath6268 ปีที่แล้ว

    Hiw to reuse components of an older react app inside a new react app

  • @paulpopaul
    @paulpopaul ปีที่แล้ว

    why use both? in a dynamic project. more files more slow ¿

  • @sivar923
    @sivar923 9 หลายเดือนก่อน +1

    My output screen is blank
    Any one tell me the solution

  • @groot843
    @groot843 19 วันที่ผ่านมา

    So you are not rendering react template, just a template that is within the react app. It would not behave like a react web app (component loading) rather just like a django web app which renders html templates.

  • @yacinerouizi844
    @yacinerouizi844 3 ปีที่แล้ว

    thank you

  • @tejakompella5704
    @tejakompella5704 4 หลายเดือนก่อน

    If I do any change do I need to rebuild if yes how to rebuild

  • @vigneshvangala2235
    @vigneshvangala2235 ปีที่แล้ว

    Plz do videos to render different components with dynamic data...

  • @amanihrd7609
    @amanihrd7609 5 หลายเดือนก่อน

    thanks a lot

  • @billionairedev6081
    @billionairedev6081 ปีที่แล้ว

    Thanks

  • @zach7894
    @zach7894 6 หลายเดือนก่อน +1

    Has to be the simplest setup so far I've seen

  • @priyeshpandey7128
    @priyeshpandey7128 ปีที่แล้ว

    Did not return any httpresponse error

  • @heylive9387
    @heylive9387 2 ปีที่แล้ว +2

    Something have been looking for 😍
    But anytime we make edit in the react app we will need to delete build and re generate again
    Any solution?

    • @anonymous_31045
      @anonymous_31045 ปีที่แล้ว

      better to use serializers, and set react app outside the the django folder, and connect them throught APIs. That will help.

  • @stivomoses8882
    @stivomoses8882 9 หลายเดือนก่อน

    Can I find the source code please?

  • @STANFORDCHIHOYI
    @STANFORDCHIHOYI 3 หลายเดือนก่อน

    can l have your django + react tutorial l cant see it

  • @vozestoica8436
    @vozestoica8436 8 หลายเดือนก่อน +1

    When I make changes to the App.js file Django do not actualize the server

    • @codewithprinsa5030
      @codewithprinsa5030 3 หลายเดือนก่อน

      Same problem....have you found out solution?

  • @Manikandan-wv5vu
    @Manikandan-wv5vu 10 หลายเดือนก่อน

    But I have blank screen

  • @smnsdf
    @smnsdf 3 ปีที่แล้ว +3

    Tommi bro please upload flask from basics

    • @CodeWithTomi
      @CodeWithTomi  3 ปีที่แล้ว +2

      I have Tutorial on flask comming up soon

  • @traveler_through_life
    @traveler_through_life ปีที่แล้ว

    "bild" or like "be:ld", not "bew"...

  • @s1dev
    @s1dev 3 ปีที่แล้ว

    How do you host this? heroku?

    • @abcdefg91111
      @abcdefg91111 ปีที่แล้ว +1

      you could use any host: heroku, aws, azure, etc.
      Just deploy the django app as you'd do normally

  • @nikolacesarovic
    @nikolacesarovic 10 หลายเดือนก่อน

    Hello,
    I tried to do the same and it works, however when app.js is changed then nothing updates, for example text is added, it is not registered as if text was added, I also tried with python manage collectstatic and it still doesn't work, how can I solve that issue?
    P.S Sorry my english is bad.

    • @MihaManoj
      @MihaManoj 9 หลายเดือนก่อน

      Did you find a fix for this issue?

    • @nikolacesarovic
      @nikolacesarovic 9 หลายเดือนก่อน

      @@MihaManoj No

    • @overseek5868
      @overseek5868 5 หลายเดือนก่อน

      i dont think its the best way to connect react and django, u need to run build everytime u make changes on the react app xd

    • @nikolacesarovic
      @nikolacesarovic 5 หลายเดือนก่อน

      @@overseek5868 So how to connect to reactjs and django? xd, I'm a beginner in reactjs, django ok I know
      P.S Sorry my english is bad.

    • @codewithprinsa5030
      @codewithprinsa5030 3 หลายเดือนก่อน

      ​@@overseek5868i did the same but changes are not shown

  • @roshanican504
    @roshanican504 3 ปีที่แล้ว

    I am a beginner at django,
    When sees you do the projects,
    It looks like a piece of cake, but the reality is hard how can we or I as beginner be proficient in using django!?

  • @banka990
    @banka990 3 หลายเดือนก่อน

    So you promised a Django-React full-stack application tutorial and never delivered...