Amazing, was looking everywhere regarding how to integrate react (vite) wit django, you made it so simple. The main part was including base: '/static/' in vite file, that made the difference which I was not able to find anywhere else.... Thanks man!!!!!
very very useful, thank you Bek Brace !! - I was wondering if we would need anything like djangorestapi, but looks very simple this aspect of authentication with vanilla django install. This tutorial is also very useful for anyone not wanting to use React as frontend, btw. Could call is django as backend + with any other frontend framework!
Glad it was helpful, friend- and i couldn't agree more, this is very useful for those who prefer to work on the backend side more than frontend, and it's as efficient!
This is a great tutorial. It is pretty straight forward. Can we make more full stack app with DRF as backend and React as Frontend with authentication, roles
I chose to use a class-based component instead of a function-based component in React because I needed to manage local component state, and class components provide a straightforward way to do that using the state object. Additionally, I found the lifecycle methods of class components helpful for handling actions like component mounting and updates. While functional components with hooks are popular now, in this case, a class component felt like the more straightforward and familiar choice for the specific needs of the component, but feel free to use function based component
BRO I DID ALL, I HAVE PASSED FOUR DAYS TRIUNG TO FIX IT. BUT , NOT FIND THE main.jsx in src, i tryed all. can you help me. i aprecciate it so much, great job, thanks.
Would have been better to see this with AllAuth rather than the custom Auth app you built. Django AllAuth + Django REST is pretty much the standard for Django.
Thank you for the video, i followed it and about to launch my project, however, my images are not being served from my dist. it shows 404 page. is there a separate config for images?
Nice....first time seeing a react tutorial using a class based component in React....phew!! Good to know how simple it is using class based components, but not sure why the whole world is running after functional based components...thanks anyways 👍 ....also please share the correct github repo link ...its not accessible to me....thank you
@@BekBrace I can't remember why I did ask this question last month.. but I think it's because I saw you using class based components and mostly saw and personally only using function base. also the new hooks and features of react is function based hooks. just realized the video is 10 months ago 😁😁
Thanks for your question, i can't however check your code, maybe you missed something out; you typically need to ensure that your client application includes the CSRF token with the request | Check that and let me know
Amazing, was looking everywhere regarding how to integrate react (vite) wit django, you made it so simple. The main part was including base: '/static/' in vite file, that made the difference which I was not able to find anywhere else.... Thanks man!!!!!
You are very welcome, my friend, glad it helped you :)))))
very very useful, thank you Bek Brace !! - I was wondering if we would need anything like djangorestapi, but looks very simple this aspect of authentication with vanilla django install. This tutorial is also very useful for anyone not wanting to use React as frontend, btw. Could call is django as backend + with any other frontend framework!
Glad it was helpful, friend- and i couldn't agree more, this is very useful for those who prefer to work on the backend side more than frontend, and it's as efficient!
Sir please make a course about django full stack , your teaching is straightforward than other youtubers
Thank you my friend. You mean more tutorials with Django in full stack apps ?
@@BekBrace yes sir tutorials rather sir
sir when I logged in it shows an error on console
Error: Internal Server Error
at isResponseOk (index-5369d346.js:45:5202)
Thank you very much, kind person, I definitely like and subscribe, it helped me a lot with the Vita assembly
Thank you so much, this makes me so happy 😊🙏
52:03 I felt that! One of the worst feeling, correct something and still not working!
Yeah, so frustrating and sometimes I feel it's better to sell potatoes than to work in programming !
This is a great tutorial. It is pretty straight forward. Can we make more full stack app with DRF as backend and React as Frontend with authentication, roles
@@davidmukoro1166 Yes, absolutely
I'm amazed by the fact that at minute 10:10 you wrote "passowrd" instead of "password" and it worked the same way
lmao, I just found out that it was because the login from the frontend wasn't used haha
Which one is more convenient to create django form, CreateView or forms.ModelForm? When to use which one? Please help!
I encounter a problem, the response of .js in the index.html type is text/plain, how can I solve this problem?
Could you also show how you access the cookie when httponly is set to true for both csrf and session?
That would require a separate video, I don't promise that soon, but I will do it
Thanks Bek! Your tutorials are useful as always
thank you so much
what's the thing that shows the details of the render method at 19:14 ? thanks for the video.
Sir i have a error shows index-5369d46.js not found
Hey brother, I'll look into that error tomorrow and get back to you with the answer 🙂
why did you use class based component instead of function based component in react?
I chose to use a class-based component instead of a function-based component in React because I needed to manage local component state, and class components provide a straightforward way to do that using the state object. Additionally, I found the lifecycle methods of class components helpful for handling actions like component mounting and updates. While functional components with hooks are popular now, in this case, a class component felt like the more straightforward and familiar choice for the specific needs of the component, but feel free to use function based component
best tutorial never have
never ? :D Thanks my friend
Sir my frontend content is not visible in django local host
how to test out api integrations while in development
BRO I DID ALL, I HAVE PASSED FOUR DAYS TRIUNG TO FIX IT. BUT , NOT FIND THE main.jsx in src, i tryed all. can you help me. i aprecciate it so much, great job, thanks.
How can I help you?
@@BekBrace So much Thanks, sr. i reach it
Would have been better to see this with AllAuth rather than the custom Auth app you built.
Django AllAuth + Django REST is pretty much the standard for Django.
🙏Thank you for the feedback on the tutorial. Your suggestion is very valuable, and I might turn it into a tutorial.✨
@@BekBrace Awesome, waiting for it!
Thank you for the video, i followed it and about to launch my project, however, my images are not being served from my dist. it shows 404 page. is there a separate config for images?
Yes. Find a video on the channel about rendering css, javascript and images in Django | this should answer your question.
Question: what's the thing showing auto-complete menu for the terminal command history?
Take a look to my video on how to customize powershell, you can customize your terminal exactly like mine
Thank you; will take a look
Thank you so much for this great tutorial !!
thank you so much
Nice....first time seeing a react tutorial using a class based component in React....phew!! Good to know how simple it is using class based components, but not sure why the whole world is running after functional based components...thanks anyways 👍 ....also please share the correct github repo link ...its not accessible to me....thank you
Cheers! repo is working fine now, it was set to private, now it's public
Class components with extra boilerplate codes and "this" reference? No thanks. Functional component is better.
Very nice work great work
Which terminal settings you are using?
Watch my "Customize powershell terminal " video
Great Job as usual !!!! Thanks a a lot Bek !
Thank you so much, brother
What's theme you using in this video?
i think Kanagwa, i don't remember
@@BekBrace Thank you
how is react now still better for classbased views?
is this a real question or rhetorical one ?
@@BekBrace I can't remember why I did ask this question last month.. but I think it's because I saw you using class based components and mostly saw and personally only using function base. also the new hooks and features of react is function based hooks. just realized the video is 10 months ago 😁😁
Thanks!
You're welcome! Thanks for watching!
Thanks a lot😁
You're welcome 🤗
Thanks Bro
You are very welcome, Madhur :
amir is also my name xd
luv ya m8 💪
Awesome brother 😎
20:40 ,27:04 ,
?
for my personal reference@@BekBrace
@@BekBrace He's putting timestamps to watch later
Ah ok, sorry 🙂
Got it, thank you 🙂
trying to follow this tutorial i get this error: Forbidden (CSRF cookie not set.): /api/login/
Thanks for your question, i can't however check your code, maybe you missed something out; you typically need to ensure that your client application includes the CSRF token with the request | Check that and let me know
I encounter a problem, the response of .js in the index.html type is text/plain, how can I solve this problem?