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

  Рет қаралды 112,812

Code With Tomi

Code With Tomi

Күн бұрын

Пікірлер: 83
@Nikhil-Tomar
@Nikhil-Tomar Жыл бұрын
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 Жыл бұрын
Probably the easiest way to get these two to work hand in hand! Awesome tutorial.
@riadutta8085
@riadutta8085 Жыл бұрын
The best React and Django integration ❤️
@adithyapokharel6831
@adithyapokharel6831 Жыл бұрын
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.
@TechieAmanda
@TechieAmanda 9 ай бұрын
Great and simple tutorial on explaining how to set-up a project with React and Django. Exactly what I was looking for 👍
@tomamore3
@tomamore3 Жыл бұрын
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.
@parralelife
@parralelife Жыл бұрын
Thank you Tomi...you've taught me how to easily integrate Django and Reactjs. Many thanks once again!
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome as always Tomi :-)
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
Thanks a lot
@UnboxingTales69
@UnboxingTales69 2 ай бұрын
Need full project tutorial on this❤❤❤❤❤❤❤
@kudrah
@kudrah 3 ай бұрын
Beautiful explanation. You literally just mademe a techie in one night.
@navidazimi7816
@navidazimi7816 3 жыл бұрын
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 3 жыл бұрын
Thanks for watching. I'll look into that
@RaushanKumar-uj2ew
@RaushanKumar-uj2ew 10 ай бұрын
very helpful video to help understand how to integrate react with django
@brantechsyt6130
@brantechsyt6130 3 жыл бұрын
great tutorial!
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
Thanks a lot
@hesdf5643
@hesdf5643 Жыл бұрын
Bro great tutorial bro thank you
@Memeparable
@Memeparable Жыл бұрын
You deserve much more attention
@Guerrero_de_la_Vida
@Guerrero_de_la_Vida 3 жыл бұрын
Tomi, great videos bro!!
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
Thanks a lot
@ranaafaq786
@ranaafaq786 5 ай бұрын
Great tutorial 😍😍
@atultripathi9166
@atultripathi9166 3 ай бұрын
Thanks. Nice work. But it is not working with react router for some reason. When I access the paths defined in react router, the django replies with not found
@csandreas1
@csandreas1 11 ай бұрын
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
@harshitm9888
@harshitm9888 3 жыл бұрын
you are awesome brother... 👏👏👏👏
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
Thanks
@AntwanOla
@AntwanOla 2 ай бұрын
Please correct me if i am wrong but when modifying the react app, wont you need to run build anytime you need to see new changes?
@mage9271
@mage9271 Жыл бұрын
everything works smoothly, thanks!
@devsp1
@devsp1 2 ай бұрын
This is very useful, thanks. But I want a full project at least to see how we can make the rendering of variables from django to react and display it's data correctly.
@ayenewyihune
@ayenewyihune 3 жыл бұрын
Thanks for the video. But how would it be during development?
@sivar923
@sivar923 Жыл бұрын
My output screen is blank Any one tell me the solution
@Kian-z8m
@Kian-z8m Жыл бұрын
thanks bro you just make my day
@joshwzr1257
@joshwzr1257 5 ай бұрын
very precise. Thanks so much
@phillipcroukamp1825
@phillipcroukamp1825 2 жыл бұрын
Thanks a ton young master keyboard warrior 👌 works perfectly
@raf_narok
@raf_narok Жыл бұрын
really great did you post a react + django tutorial ?
@hroman_codes
@hroman_codes Жыл бұрын
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?
@AmitabhSuman
@AmitabhSuman Жыл бұрын
Perfect Tutorial ! Thank you so much !
@zach7894
@zach7894 11 ай бұрын
Has to be the simplest setup so far I've seen
@francomacias8904
@francomacias8904 2 жыл бұрын
Tomi Rocks!
@CodeWithTomi
@CodeWithTomi 2 жыл бұрын
Thanks 🙏:)
@bilalzeaiter9720
@bilalzeaiter9720 Жыл бұрын
beautiful and simple
@groot843
@groot843 5 ай бұрын
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.
@vozestoica8436
@vozestoica8436 Жыл бұрын
When I make changes to the App.js file Django do not actualize the server
@codewithprinsa5030
@codewithprinsa5030 8 ай бұрын
Same problem....have you found out solution?
@lalaniwerake881
@lalaniwerake881 Жыл бұрын
wonderful, thank you!
@RaivisPetrovskis
@RaivisPetrovskis Жыл бұрын
Thanks, great tut 👍
@nissioyere7822
@nissioyere7822 6 ай бұрын
Très utile merci beaucoup. Le tout fonctionne
@heylive9387
@heylive9387 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.
@swayamsiddhanath6268
@swayamsiddhanath6268 Жыл бұрын
Hiw to reuse components of an older react app inside a new react app
@sky7681
@sky7681 Жыл бұрын
Subscribed Tomi bhai🙏
@paulpopaul
@paulpopaul Жыл бұрын
why use both? in a dynamic project. more files more slow ¿
@farhanayeasmin6153
@farhanayeasmin6153 2 ай бұрын
I was thinking the same, it would work great for tiny projects, but in industries we can't use this method.
@Setssquare
@Setssquare 3 жыл бұрын
Tommi bro please upload flask from basics
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
I have Tutorial on flask comming up soon
@RR-et6zp
@RR-et6zp 2 жыл бұрын
bro can you do a react tutorial for beginners please? you're a brilliant teacher, just went through the python one
@tejakompella5704
@tejakompella5704 9 ай бұрын
If I do any change do I need to rebuild if yes how to rebuild
@stivomoses8882
@stivomoses8882 Жыл бұрын
Great job
@maybe_ok
@maybe_ok Жыл бұрын
thank you bro
@STANFORDCHIHOYI
@STANFORDCHIHOYI 8 ай бұрын
can l have your django + react tutorial l cant see it
@nikolacesarovic
@nikolacesarovic Жыл бұрын
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.
@ManojChessSchool
@ManojChessSchool Жыл бұрын
Did you find a fix for this issue?
@nikolacesarovic
@nikolacesarovic Жыл бұрын
@@ManojChessSchool No
@overseek5868
@overseek5868 10 ай бұрын
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 10 ай бұрын
@@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 8 ай бұрын
​@@overseek5868i did the same but changes are not shown
@priyeshpandey7128
@priyeshpandey7128 Жыл бұрын
Did not return any httpresponse error
@vigneshvangala2235
@vigneshvangala2235 2 жыл бұрын
Plz do videos to render different components with dynamic data...
@MohamedHamdhan-t3o
@MohamedHamdhan-t3o Жыл бұрын
Extremely helpfull
@amanihrd7609
@amanihrd7609 10 ай бұрын
thanks a lot
@stivomoses8882
@stivomoses8882 Жыл бұрын
Can I find the source code please?
@s1dev
@s1dev 3 жыл бұрын
How do you host this? heroku?
@I_hu85ghjo
@I_hu85ghjo 2 жыл бұрын
you could use any host: heroku, aws, azure, etc. Just deploy the django app as you'd do normally
@billionairedev6081
@billionairedev6081 Жыл бұрын
Thanks
@yacinerouizi844
@yacinerouizi844 3 жыл бұрын
thank you
@Manikandan-wv5vu
@Manikandan-wv5vu Жыл бұрын
But I have blank screen
@traveler_through_life
@traveler_through_life Жыл бұрын
"bild" or like "be:ld", not "bew"...
@Matin_MakiAbadi
@Matin_MakiAbadi 3 ай бұрын
I'm such an idiot!!! I kept running npm run build and copying the content of build directory to my Django project!!!!
@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!?
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 113 М.
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 133 М.
Django & React Tutorial #3 - React Integration Using Webpack & Babel
27:17
React + Django Integration Tutorial | Hello World App
11:01
Dennis Ivy
Рет қаралды 243 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 440 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 312 М.
Django React App Tutorial #2: Setting up the React JS Frontend
11:56
Django + Vite: The simple way
30:20
Luciano Ratamero
Рет қаралды 20 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН