Django and React Tutorial // 1 - Creating a Fullstack Application

  Рет қаралды 319,702

Matt Freire

Matt Freire

Күн бұрын

Пікірлер: 225
@mattfreire
@mattfreire 4 жыл бұрын
*** Please note this video is over two years old. I've left it up for those of you who might get value from it but be aware that packages update and things change. It could not work for you and that might just be because the tech has changed by now. We have a recently created (2020) course on our website that covers how to build web applications with Django and React. It is a paid course but the value you get is much more than this old tutorial. If you're interested check out learn.justdjango.com Thanks for your understanding! ***
@aloudiakite1217
@aloudiakite1217 3 жыл бұрын
Hi, great job. However, I think it would have been better to include a monthly subscription than yearly alone.
@mazenahmed4495
@mazenahmed4495 Жыл бұрын
5 years old and still one of the best playlists
@betteratcoding
@betteratcoding 6 жыл бұрын
why would anyone downvote this tutorial? This is priceless information. You have no idea how many hours you just saved me. Thanks.
@Guinhulol
@Guinhulol 5 жыл бұрын
Zacarias Ripoll Cid Pure jealousy!
@BreadWinner330
@BreadWinner330 5 жыл бұрын
Vue cultists 😩
@crlshn
@crlshn 4 жыл бұрын
@today there are 35 downvotes, that *siri* don't get...great info, great speed,... to the point and explicit say is basic.. still need token auth/redux and things ... this 1h tutorial es basico..and is great!.
@supreetpp
@supreetpp 4 жыл бұрын
Some people had a very bad day and wanted to share it with us. 😂
@conorbyrne2101
@conorbyrne2101 4 жыл бұрын
They are nodejs developers of course 😂😂
@wolfisraging
@wolfisraging 4 жыл бұрын
Man your channel is the best for learning anything related to django, marvellous work. Thanks
@nurbektaizhanov4534
@nurbektaizhanov4534 3 жыл бұрын
+
@SWAGER1811
@SWAGER1811 4 жыл бұрын
Honestly one of the best tutorial, watch this... avoid the other once. They will mess you up
@kahinakram
@kahinakram 4 жыл бұрын
Damn, I have never been so immersed in a tutorial before xD Such calm and nice voice with extremely pedagogical explanations! Thank you!
@RahulGupta99
@RahulGupta99 3 жыл бұрын
This might be 2 years old, but it's very nicely done. If you follow the steps, and understand the sequence, it's a fantastic tutorial.
@gantiphani7920
@gantiphani7920 6 жыл бұрын
This is awesome. I was looking for Django + React tutorial and here it is. Great job !!
@barictj
@barictj 6 жыл бұрын
Say dude, you made this way easier than anyone else has for me. I really appreciate this great tutorial.
@tungleanh9993
@tungleanh9993 3 жыл бұрын
oh man, I try to figure this out for weeksss... thank you, just watch 60s in the middle of video solve my problem.
@saitaro
@saitaro 6 жыл бұрын
Your work is gold, you rock, I love you, please live long and happy life, this world needs such people.
@llewellynhattingh3496
@llewellynhattingh3496 4 жыл бұрын
South Africa FTW! Great job man, have been looking for a tutorial like this
@ioan-dumitruhadarean1483
@ioan-dumitruhadarean1483 5 жыл бұрын
I am honestly gonna watch all your videos. Quality teaching.
@Whateverworksism
@Whateverworksism 4 жыл бұрын
Thank you good sir. Informative thus far. Perhaps a bit too quick but I just stop the vid and read some more documentation before I understand what you're doing - and why you're doing it - before I move on. Works a treat! Thanks again.
@AshutoshSingh-fy2xc
@AshutoshSingh-fy2xc 4 жыл бұрын
The only best video for react along with django
@Dor0
@Dor0 4 жыл бұрын
Very nice tutorial. Most complete for starting a Django+React App I've found. Took me 3 hours to follow, but it was really useful
@keithandrelashley
@keithandrelashley 6 жыл бұрын
I am liking this so far I would be interested and seeing more videos with Django and Flask Rest API and React front end.
@rgenericson5361
@rgenericson5361 6 жыл бұрын
Agreed!
@vijayrajput3297
@vijayrajput3297 3 жыл бұрын
One of the great tutorial ever 🎉🔥 Thank you so much for creating such wonderful video ..
@Colstonewall
@Colstonewall 5 жыл бұрын
Great tutorial. As much as I've used Django in the past, I've never used the Rest Framework. I'm thrilled to give it a try.
@iangardner9876
@iangardner9876 4 жыл бұрын
Hahaha, the closing the tabs "that should be... enough amount". So relatable.
@songfanhuang2754
@songfanhuang2754 4 жыл бұрын
Thanks for this great learning course for React + Django. I have been trying to learn Django + React for long, reading books, watching video and could not figure out. with this video, i finally picked it up in just two days. Cool. (like)
@devensutcliffe
@devensutcliffe 4 жыл бұрын
Excellent Tutorial, thank you so much. I can't wait to tuck into #2.
@OladipupoPopoola
@OladipupoPopoola 4 жыл бұрын
Absolutely loved it. What a great way to start my weekend. Thanks buddy.
@mehtarjt
@mehtarjt 4 жыл бұрын
Very well made video! Thanks for sharing clear and easy to follow instructions
@RaphaStout
@RaphaStout 6 жыл бұрын
Very clear and working like a charm!
@jayamankrah4328
@jayamankrah4328 4 жыл бұрын
Perfect and clear explanation, thanks buddy. I love the way you teach.
@Gameryt-v-ishak
@Gameryt-v-ishak 3 жыл бұрын
God bless you Sir for sharing information of Django
@perseyiis
@perseyiis 4 жыл бұрын
The best django channel I've found !
@crosscoss
@crosscoss 4 жыл бұрын
If anyone has issues with the part at 34:00 where even after installing the django cors headers they are still getting CORS Errors on their request, even after setting everything up, here's what you got to do: Try opening an incognito tab and navigate to localhost:3000 and see if you can actually get a response like this. If that works, then just clear your browser's cache and it should work. If that didn't work, make sure the cors middleware is at the top of the list. Make sure you have the `CORS_ALLOW_ALL_ORIGINS = True` line at the end of your settings.py file. Hope this helps anyone struggling with this.
@Eyenn_n
@Eyenn_n 4 жыл бұрын
Thank you very much! This video is so clear and so helpful! Really really appreciate it!
@comunicloud30
@comunicloud30 2 жыл бұрын
Dude, thanks so much for you exist. I wish God bless you a lot.
@qa337
@qa337 5 жыл бұрын
14:00 Author: “Create Serializers” Siri: “WHAT?!”
@MacKoslowski
@MacKoslowski 6 жыл бұрын
Immensely helpful, and right when I needed it. Thank you so much
@nicomagliaro
@nicomagliaro 6 жыл бұрын
Really nice, detailed and strightforward tutorial for newis. THANK YOU with big capital letters!
@csjoy4682
@csjoy4682 3 жыл бұрын
thank you for your better explanation.
@parthmishra2531
@parthmishra2531 4 жыл бұрын
Good video!! Really helped me integrating React into my project.
@abdelazizbounhar8030
@abdelazizbounhar8030 6 жыл бұрын
Super awesome !! Good job !!
@DEGENRUST
@DEGENRUST Жыл бұрын
React Router version 6 really puts a damper on the code around 37:00. Do you have a source or anything that would help recode this to V6's new requirements?
@arnoldwolfstein
@arnoldwolfstein 5 жыл бұрын
Best Django+React Tutorial! Thx a lot!
@Murga_Mutton
@Murga_Mutton 5 жыл бұрын
Please make a video on deploying this app. Thanks. Great Job!
@dexter6081
@dexter6081 6 жыл бұрын
oh may gosh, this is awesome, thank you man
@daleyc.3008
@daleyc.3008 4 жыл бұрын
What keyboard are you using? Sounds fantastic.
@opmarketing.digital
@opmarketing.digital 5 жыл бұрын
Great job man, really nice tutorial. PS: Love the hide ASMR on that keyboard
@HongNguyen-qg4ys
@HongNguyen-qg4ys 5 жыл бұрын
Your videos are extremely helpful. Many many thanks !!!!!
@Thesrik23
@Thesrik23 6 жыл бұрын
Love you man! Awesome one. Can you please make a video on Django celery Redis integration and app built on it?
@mattfreire
@mattfreire 6 жыл бұрын
Thanks man. Yeah I’ll take a look
@Paul-qn7qv
@Paul-qn7qv 5 жыл бұрын
I am a beginner in React, but why wasn't `state` been declared inside a constructor at 32:20?
@tomcrossley315
@tomcrossley315 4 жыл бұрын
Fantastic tutorial, thanks!
@hamyazilim
@hamyazilim 4 жыл бұрын
nice and clear tutorial.
@zayansplayground5301
@zayansplayground5301 6 жыл бұрын
could you please show how to create/register user from the front end and how to login-logout? btw you are a fantastic instructor!
@mattfreire
@mattfreire 6 жыл бұрын
Thanks. It’s covered in the third video of this playlist
@zayansplayground5301
@zayansplayground5301 6 жыл бұрын
ok great! keep continue this series with some more advanced features.
@julianbazanaguirre8439
@julianbazanaguirre8439 4 жыл бұрын
I created the .vscode folder and then the settings.json but only a normal json file was created, in your video it looks like by magic you already have a lot of info created there as well as user settings and workspace settings.
@vaughanscott6233
@vaughanscott6233 4 жыл бұрын
Hi @ 11:22 I get the following error when trying to run server: Not Found: / [07/Aug/2020 14:37:43] "GET / HTTP/1.1" 404 2031 I used npx create react app instead of downloading create react app as that whas what the create react app webpage suggested. Could this have caused this issue or did I maybe miss something?
@eagleofsharm
@eagleofsharm 3 жыл бұрын
Fantastic, thanks a lottttttt .
@Mostaqmahmud
@Mostaqmahmud 6 жыл бұрын
It's completely satisfactory tuts...
@gardedesombres3254
@gardedesombres3254 3 жыл бұрын
Thanks a lot man !
@attin83
@attin83 5 жыл бұрын
Great job, thank you for this tutorial.
@malikbrahimi7504
@malikbrahimi7504 4 жыл бұрын
How do you setup CSRF in a restful environment?
@MandeepTondak
@MandeepTondak 6 жыл бұрын
great video to start with react + django
@raffvirdo4821
@raffvirdo4821 5 жыл бұрын
This was great. Thank you!!
@ashrafulfuad2967
@ashrafulfuad2967 4 жыл бұрын
so much helpful thank you sir
@bayasaakop1737
@bayasaakop1737 5 жыл бұрын
Thank you for tutorial. How can i upload my project to git. When pushing my project into git, only the backend is getting pushed.
@emdadsarker4742
@emdadsarker4742 4 жыл бұрын
hello sir, the last three courses from the playlist of yours has been removed. As a beginner I want to start your all django series from the very begining. So, will you please re-upload or give a link of those series. It will help me a lot. 1. How to build a website with Django 2. Django Rest framework + Json, Ajax 3. Django Intermediate
@alihusham1560
@alihusham1560 4 жыл бұрын
03:45 official documentation say you should use python3 -m venv env
@maximilianocarreno7461
@maximilianocarreno7461 6 жыл бұрын
Congratulations for your job!!!! your page is nice too.... Thanks!
@aBradAbroad
@aBradAbroad 5 жыл бұрын
Top notch. Thank you very much.
@lewismachilika5547
@lewismachilika5547 5 жыл бұрын
this is great work it helped me a lot
@chieeeffaatecchh6187
@chieeeffaatecchh6187 6 жыл бұрын
More tuts please. You got a new subscriber.
@hasanozturk6087
@hasanozturk6087 4 жыл бұрын
I think, it would be better to show what the final application is going to be look like, at the beginning. So that, people can get motivated or understand what they will learn.
@AbhishekKumar-mq1tt
@AbhishekKumar-mq1tt 6 жыл бұрын
Thank you for this awesome video
@ichbinderkonig4049
@ichbinderkonig4049 6 жыл бұрын
Great job man. Can you please make one for creating and updating?
@mattfreire
@mattfreire 6 жыл бұрын
Will try have it up soon
@ichbinderkonig4049
@ichbinderkonig4049 6 жыл бұрын
JustDjango thanks. It's probably a lot but can you please integrate authentication with jwt too?
@mattfreire
@mattfreire 6 жыл бұрын
I’ll probably do it in a separate video but will try get it up.
@ichbinderkonig4049
@ichbinderkonig4049 6 жыл бұрын
JustDjango good. Thanks
@eduardofernandezdiaz5264
@eduardofernandezdiaz5264 6 жыл бұрын
I'm adding this wizard to my subscriptions. If he uploads a video of creating and updating I'll have to go mount Everest and put a flag with his name on top of it lmao
@luisweber976
@luisweber976 3 жыл бұрын
Are all swrializers made like that or are there variations
@jorgeaugusto01
@jorgeaugusto01 5 жыл бұрын
Excellent Job, thank you!!!
@dainorablue
@dainorablue 6 жыл бұрын
Amazing tutorial, thank you!!! :)
@Didneodl
@Didneodl 6 жыл бұрын
Thank you for the great tutorial! While watching it, I came up with a question. In that way from the tutorial, isn't the API accessible for anyone who know the API url? Is it safe for security?
@mattfreire
@mattfreire 6 жыл бұрын
Yes the API is open but only for development mode. In production you would specify your front end server (firebase for example) as the only whitelist url, which is secure
@quasa0
@quasa0 5 жыл бұрын
@@mattfreire, why though? I mean isn't this API supposed to be called from the user browser and not from the frontend server?
@mattfreire
@mattfreire 5 жыл бұрын
@@quasa0 The user's browser sends the request, which comes from the domain you are on. So in the backend it will see that the request came from the frontend
@aneeshpanil
@aneeshpanil 6 жыл бұрын
Great tutorial, thanks
@aditya-bl5xh
@aditya-bl5xh 4 жыл бұрын
Hello everyone, I'm developing a project in which there are some users and some clubs where the user will be able to join and follow it. But, I'm kinda stuck in this, because idk how to create these clubs, I mean to create a new model for them or use any existing feature of django. Please help, I'm college student
@zhh174
@zhh174 4 жыл бұрын
Bro you are genius. how u learned so much frameworks?
@mustaniram6735
@mustaniram6735 6 жыл бұрын
Thanks. Great job.
@vijayrachakonda8411
@vijayrachakonda8411 4 жыл бұрын
Would this code structuring also work for Django+React Native? Can you still put the front end and back end all in one project folder?
@jaideepsingh7955
@jaideepsingh7955 4 жыл бұрын
Sir can u please tell how to display a model(database) entries list as a FORM, so that its values can be edited. i actually have a db for participants list that includes a column for attendance. later at the event i want to mark attendance, so i want to b able to edit that column from the website and resave/update that db ?????
@gazimorshed6678
@gazimorshed6678 4 жыл бұрын
please update your video on DJANGO SALEOR CUSTOMISE and deployment.
@deadfool6105
@deadfool6105 6 жыл бұрын
That's awsome.. 😊😊😊😊😊
@ChumX100
@ChumX100 6 жыл бұрын
Awesome! Very Clear! Have you tried using GraphQL instead of REST as API technology? You could use graphene on the backend and Relay on the frontend. It would make for a great tutorial I think. Also, right now you have two servers running, one with node for delivering the react app and another one with django serving the API views. Have you tried to setup django so that it serves the react app? This could simplify deployment.
@mattfreire
@mattfreire 6 жыл бұрын
I’ve setup graphene before. Could make a tutorial on it but will have to see. I’ve setup the Django project so that it serves the React app but for a development workflow I don’t think it’s great. Check out a video but codingforentrepreneurs to see the implementation. You land up needing custom scripts in your package.json file to build your React app and move it to your static files. A good workaround but not something I think is nice for developing because you’re constantly running scripts. Rather have them as 2 separate servers in the beginning and then when going live you can merge them, as you’ll see in the fourth video being posted today
@julianbenegas512
@julianbenegas512 5 жыл бұрын
@@mattfreire Yeah. I've seen some other tutorial that sets it up all together and it was quite confusing. This one is simple and straightforward. Love it.
@remy8587
@remy8587 4 жыл бұрын
@@mattfreire Although if you have two separate servers, its not a "Django with React" stack, it's just Django DRF and React that happen to be communicating with each other using API calls. What would be interesting is to connect them within Django itself so that you can use Django's authentication for example instead of reinventing the wheel with JWTs (that are less secure than cookies).
@jazabc.9014
@jazabc.9014 4 жыл бұрын
Did you end up learning graphene integration? I would love to ask some technical questions about graphene
@ChumX100
@ChumX100 4 жыл бұрын
@@jazabc.9014 I got it working, but dropped it after some testing. Some queries where performing really bad and fixing them would require some low level tinkering, which would kinda defeat the purpose of using GraphQL in the first place :/ Anyway that was a year ago, maybe things are better now, how did you find the library now?
@theefamiliar3497
@theefamiliar3497 5 жыл бұрын
Haha, I love that your channel is specialized in Django, but it makes me laugh whenever I think that you have probably spent more time (overall) doing React stuff )))
@TheDrunkenmaster44
@TheDrunkenmaster44 4 жыл бұрын
I was following along, except my model had a charfield() and an Integerfield, so it doesn't output even though it recieves the data :(
@xXHelsingGamingXx
@xXHelsingGamingXx 4 жыл бұрын
I love that you have used VS Code!
@jaymartinez311
@jaymartinez311 6 жыл бұрын
In vscode what extension are you using for your Powershell? Meaning you have syntax highlighting and other cool stuff.
@mattfreire
@mattfreire 6 жыл бұрын
+J Martinez I’m using a bash terminal but I haven’t added any extensions for it
@jaymartinez311
@jaymartinez311 6 жыл бұрын
I know your running two terminals. I figured the one you had the frontend stuff is the react one but the one I was speaking of was the one in vs code. The backend terminal. I purchased your course on Udemy by the way and thanks for replying. Have a great day!
@mattfreire
@mattfreire 6 жыл бұрын
@@jaymartinez311 Thanks for the support!
@AbhayKumarSrivastava
@AbhayKumarSrivastava 4 жыл бұрын
Great Tutorial. Could you please point me to the source code for frontend ?
@LordFullStack
@LordFullStack 4 жыл бұрын
Hey , i will love it if you please do a Vue CLI and Django integration . i need it please !
@santiagotorres6929
@santiagotorres6929 4 жыл бұрын
Awesome video, but I'm getting an error at the time I tried to implement the data from the API, it doesn't appear on the content. Hope I can get an answer soon
@gurudasshinde9059
@gurudasshinde9059 5 жыл бұрын
Thank You soooo much for this video
@adithyadinesh1996
@adithyadinesh1996 6 жыл бұрын
Is there a way to use Django Rest Framework for Django Functions.
@CanerTrksln
@CanerTrksln 5 жыл бұрын
Firstly , thank you for video. When I install each module example antd and axios npm is does not working.I am deleting node_modules , I am installing npm and latest I am re-install modules(axios ,antd or anything).What would you suggest ? I am using Linux and everything is okay(django,react,npm)
@teejaay_me
@teejaay_me 6 жыл бұрын
Couldnt success the get request even after installing,configuring django-cors-headers. "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at 127.0.0.1/8000/api/. (Reason: CORS request did not succeed)."
@peteserz6997
@peteserz6997 4 жыл бұрын
around 43 minutes: Why did you change the single quote in the axios call to " ` ` " ? obviously i tried that and it worked, but we didn't use that format for the list view we copied from, so it doesn't make sense.
@alzothunder5391
@alzothunder5391 4 жыл бұрын
Using back ticks `` to denote a string allows you to use `${varName}` in the actual string itself. This is called a template literal and is extremely useful. So you can say: const greeter = (name) => { console.log(`Hello ${name}`) } greeter("Dan"); greeter("Carl"); and it will print "Hello Dan" and then "Hello Carl"
@mostafizurrahmanshohan9075
@mostafizurrahmanshohan9075 5 жыл бұрын
Hello, Thank you for this great content. Would you please make a tutorial on how to create a facebook/twitter like basic notification system? or you can share with me any relevant blogs/tutorials. Thank you again :)
@quasa0
@quasa0 5 жыл бұрын
Dude can you specify what you want more precise?
@quasa0
@quasa0 5 жыл бұрын
I'm reading this and literally cannot understand what exactly do you want.
@Zzzzzzzzzzzzzzzzzzzzr
@Zzzzzzzzzzzzzzzzzzzzr 6 жыл бұрын
this works with es6 as well im sure.going to try it out .
@munkhfitness
@munkhfitness 6 жыл бұрын
Great tutorial! Do you have a similar one with using GraphQL rather REST?
@mattfreire
@mattfreire 6 жыл бұрын
No not right now but working on it
@silvaXX-st9nh
@silvaXX-st9nh 6 жыл бұрын
You are awesome.
@VikasPatel-zw6sl
@VikasPatel-zw6sl 6 жыл бұрын
I created the project with this tutorial but how to host this in AWS or Digital ocean. Can you please help me on this
@HonestADVexplorer
@HonestADVexplorer 6 жыл бұрын
Thanks for the tutorial! I was wondering if you are familiar with Pyramid framework? Would be great if you could make a tutorial for that too. I haven't seen any tutorial for this powerful framework. Sure many would check it out.
Django and React Tutorial // 2 - Handing Post Requests
43:51
Matt Freire
Рет қаралды 64 М.
What is the future of Django / Is Django becoming obsolete?
19:35
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Django Dynamic Forms Tutorial with Htmx
48:27
Matt Freire
Рет қаралды 70 М.
Python Microservices Web App (with React, Django, Flask) - Full Course
2:16:06
React + Django To-Do App | Django REST Framework
55:28
Dennis Ivy
Рет қаралды 175 М.
React + Django Integration Tutorial | Hello World App
11:01
Dennis Ivy
Рет қаралды 243 М.
7 concepts you should know to get a job as a Django developer
23:12
Django Channels Tutorial - 1 // Creating a chat application
32:17
Matt Freire
Рет қаралды 288 М.
Python Django Web Framework - Full Course for Beginners
3:45:41
freeCodeCamp.org
Рет қаралды 4,8 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН