Build a Django API with React.js Front-end

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

Very Academy

Very Academy

Күн бұрын

Пікірлер: 53
@lexborodai1639
@lexborodai1639 3 жыл бұрын
I am surprised of how aware the people in the comments are :) Beacuse you, guys, know what's going on on the screen... I was following the whole Django playlist from the very begining and was sure I started to understand what's going on, but this one changed my mind... Am super confused with all those npm commands, js scripts, tree structures, new files, some crazy functions with dollar sign, and so on. So many questions... But the main one - where the hell do you all know those weird things from? xD
@veryacademy
@veryacademy 3 жыл бұрын
Thanks Lex for watching. This is super old now this tutorial, sorry if it has caused any issues.
@edchelstephens
@edchelstephens 3 жыл бұрын
Thanks a lot for this tutorial. How does the production build look like?
@drewbregman9098
@drewbregman9098 3 жыл бұрын
Hi, good video; however, I followed your code to a tee, and even restarted after running into the same error. Once I get to 15:50 and I go to npm run dev, I get an error with webpack-cli "Unknown option --output' how Do I fix this?
@veryacademy
@veryacademy 3 жыл бұрын
You should use --output-path Let me know if that works - the webpack is a little out of date now
@drewbregman9098
@drewbregman9098 3 жыл бұрын
@@veryacademy Yes it does; however, another problem arose at the very end. I inputted a few events via API, but the react does not render this information. What are your thoughts?
@dougengineer95
@dougengineer95 3 жыл бұрын
You are the best ! Amazing video !
@blackpetergriffin179
@blackpetergriffin179 4 жыл бұрын
could you please make user interactive django-react tutorial like the user order manage and comment and everything!
@veryacademy
@veryacademy 4 жыл бұрын
Hi, sure, I will be doing more React. I am slowly getting to that point! I do have the newer API series with React that you could look at for now kzbin.info/www/bejne/qaDblZKuma2FZtE
@miguelrodriguez2349
@miguelrodriguez2349 3 жыл бұрын
VERY good video!
@veryacademy
@veryacademy 3 жыл бұрын
Thank you very much!
@bringinglife2
@bringinglife2 4 жыл бұрын
Do we need to have to use AJAX anywhere if we are using React for the frontend of our project?
@veryacademy
@veryacademy 4 жыл бұрын
If you are using react and want it to interact with a backend database you will need to be able to collect that data to use in your application. That would normally be a Restful API call or you could use an AJAX request. But to answer your question no you don't need AJAX you can use API request
@bringinglife2
@bringinglife2 4 жыл бұрын
@@veryacademy Thank you for the answer! So that means things like live feed will work without AJAX calls right?
@veryacademy
@veryacademy 4 жыл бұрын
When you say 'live' feed I wouldn't associate AJAX with that - but if you are saying what I think you are then you can replace AJAX with API calls. Live feeds I think of asynchronous real time events. If you like give me an example of what feature you want to not use AJAX for
@bringinglife2
@bringinglife2 4 жыл бұрын
@@veryacademy For example, like a real-time notification and activity feed to fetch information as soon as they are created or in certain time intervals.
@veryacademy
@veryacademy 4 жыл бұрын
@@bringinglife2 Thank you! Ok so - intervals -yes indeed there is very specific tech you can use for creating API calls on a interval (its a bit costly though all those calls to the server) If the activity or information has been created by the user then yes you can use API to update in real time like AJAX - if you wanted the other way around - so the server to push out an update without first making a call from the front-end or user. Then this becomes a different conversation
@animeshchoudhary8071
@animeshchoudhary8071 4 жыл бұрын
Can you make project like movie recommendations system integrat with fronted react design, because lecture available on KZbin are only focusing on backend part not the frontend one..
@veryacademy
@veryacademy 4 жыл бұрын
Sure! That is a great suggestion, thank you. Recommendation systems is one of my specialist subject areas. That’s a great point regarding front-end thank you
@animeshchoudhary8071
@animeshchoudhary8071 4 жыл бұрын
@@veryacademy thanks for your +ve response, I hope you will start dis soon, because my placement will be started from mid December, before that I want to build something like dis🙂
@veryacademy
@veryacademy 4 жыл бұрын
Ok - please build me a feature specification for this - if I am going to do it - I might as well do it as you need it
@animeshchoudhary8071
@animeshchoudhary8071 4 жыл бұрын
@@veryacademy sure , build a movie recommendation whoes fron -tend part should be on react , can be clone like Netflix and mentioned sentimental analysis , I am putting one video link, have look, a boy made project ,you will get idea😊. kzbin.info/www/bejne/bnyyXqWaqLyAoM0
@vinoddiwan5792
@vinoddiwan5792 4 жыл бұрын
Can you do a big project with django and react
@veryacademy
@veryacademy 4 жыл бұрын
You will be seeing bigger projects with Django very soon as well as Django with react and a whole react section. I’m just finishing up a Django CRUD video - projects will get bigger and more complex over time and as I get more subs. Can you think of a Django react theme for a tutorial that you would like - example quiz app or CMS etc? Rather I make something you want to actually build
@vinoddiwan5792
@vinoddiwan5792 4 жыл бұрын
@@veryacademy choose from the real world what we are using. With more concepts and features using ajax.
@codedjango
@codedjango 4 жыл бұрын
Is it possible for you to do this with VueJS frontend instead of React? Thank you
@veryacademy
@veryacademy 4 жыл бұрын
I have used Vue with Django but not integrated in a Django app like was shown in this tutorial. I will have a think and see if I can produce this for you
@codedjango
@codedjango 4 жыл бұрын
@@veryacademy wow that would be awesome and exciting...I understand Vue better than React, hence this request. Thank you 😊
@baetraki7268
@baetraki7268 3 жыл бұрын
can you please make more in-depth tutorial on react.js and Django?
@veryacademy
@veryacademy 3 жыл бұрын
Sabeqiasur, take a look at the ecommerce with Next - Next.js is build on react. The next part, part 2 we cover state management, session login with httpOnly cookies and will introduce Xstate.
@baetraki7268
@baetraki7268 3 жыл бұрын
@@veryacademy okay, ill be waiting
@drewbregman9098
@drewbregman9098 3 жыл бұрын
Another problem arose at the very end. I inputted a few events via API, but the react does not render this information, it only renders a blank screen until I go into the index.html and write a word in there. What are your thoughts?
@veryacademy
@veryacademy 3 жыл бұрын
Hi Drew - tricky one to give you any feedback on without seeing code I am afraid.
@nair.network4217
@nair.network4217 3 жыл бұрын
Error towards the end ... (venv) D:\VA-PyCharm\vaProjTrial1 eact_frontend>npm run dev > react_frontend@1.0.0 dev > webpack --mode development ./src/index.js --output ./static/frontend/ma in.js [webpack-cli] Error: Unknown option '--output' [webpack-cli] Run 'webpack --help' to see available commands and options
@amiaynarayan619
@amiaynarayan619 3 жыл бұрын
you can try --output-path instead
@timothyhitge9189
@timothyhitge9189 4 жыл бұрын
These videos are amazing. 10x better than anything on Udemy.
@veryacademy
@veryacademy 4 жыл бұрын
Thanks Tim, things have slowed down a bit here - am building a learning platform which I think will make things 50x better - thank you for subscribing
@martinkuria5186
@martinkuria5186 4 жыл бұрын
any reason you didn't use create-react-app?
@veryacademy
@veryacademy 4 жыл бұрын
Hi Martin, Yes stick to create-react-app. I guess I am thinking that, although that it is the official way there are other ways. It’s the rebel inside me - tell me I have to do the official way, I want to explore if there is another way
@amiaynarayan619
@amiaynarayan619 3 жыл бұрын
also to install react without create-react-app : npm install react react-dom --save
@rangabharath4253
@rangabharath4253 4 жыл бұрын
awesome content in your channel. keep it up.
@veryacademy
@veryacademy 4 жыл бұрын
Thanks Ranga, as long as someone watches I will keep producing
@bartram-1995
@bartram-1995 4 жыл бұрын
hello, thanks you very much. I'm a Tomoya from Japanese. if you don't understand my english sorry. I tried write this code. but browser didn't read Event APIs. I'm appreciate you very much if you can show "django-api-react" DIR on github or anywhere.
@bartram-1995
@bartram-1995 4 жыл бұрын
sorry! I found it! on github!
@veryacademy
@veryacademy 4 жыл бұрын
Hey Yoshi, thank you for your comment - glad you found what you were looking for. Don't worry about your English - it is fine.
@elonmusk2142
@elonmusk2142 4 жыл бұрын
please can you make videos where you wil show all these things in advanced level please
@veryacademy
@veryacademy 4 жыл бұрын
Hi Johny, that is the plan. As you probably see, I am just getting started with this channel, trying to get better at delivering content, and starting with some easier material. Was there something specific that you wanted to see?
@elonmusk2142
@elonmusk2142 4 жыл бұрын
hello thank you veru much
@veryacademy
@veryacademy 4 жыл бұрын
Welcome 😊
@googlesheetsph
@googlesheetsph 4 жыл бұрын
WHERE IS MAIN.JS????????
@veryacademy
@veryacademy 4 жыл бұрын
Hi, what is it you are looking for? Is the file missing?
@veryacademy
@veryacademy 4 жыл бұрын
The main.js file is in this file directory YT-Django-RestAPI-React-Frontend/react_frontend/static/frontend/
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Python Django REST API In 30 Minutes - Django Tutorial
30:42
PedroTech
Рет қаралды 43 М.
React + Django To-Do App | Django REST Framework
55:28
Dennis Ivy
Рет қаралды 175 М.
How To Make a Django REST API - Full Tutorial & Deployment
40:18
Tech With Tim
Рет қаралды 103 М.
ПРИКРУЧИВАЕМ DJANGO REST FRAMEWORK
39:24
BogdanDotPy
Рет қаралды 3,5 М.