Django and React Tutorial // 5 - How to authenticate requests with tokens

  Рет қаралды 31,765

Matt Freire

Matt Freire

Күн бұрын

Пікірлер: 26
@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 authentication in Django. 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! ***
@josephwong2832
@josephwong2832 4 жыл бұрын
Thanks a lot JD!!! can't believe how little people are liking your vids
@sahiltrivedi69
@sahiltrivedi69 4 жыл бұрын
Thanks bro your series has been a blessing.. live long and prosper :D
@thisgnop3177
@thisgnop3177 4 жыл бұрын
Thank you very much bro (execuse my English). It's been a week since I started taking your lessons, it really helps me. This playlist taught me a lot even here I had to fight sometimes in the face of dependency problems since the course was produced 2 years ago but still thanks. really
@Thesrik23
@Thesrik23 6 жыл бұрын
Awesome! Please make this a big series
@aneeshpanil
@aneeshpanil 6 жыл бұрын
Great tutorial series very clear......Please continue the Series
@HERO-fq2vt
@HERO-fq2vt 4 жыл бұрын
Awesome tutorial!!
@yanfoo
@yanfoo 5 жыл бұрын
I followed this tutorial to the letter. But no API call work. First, I have noticed that logging out does not remove the token on the server, so I implemented a small method that calls /rest_auth/logout/ but the response is always the same : Access to XMLHttpRequest at '127.0.0.1:3000/rest-auth/logout/' from origin 'localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. The settings.py has CORS_ORIGIN_ALLOW_ALL = False CORS_ALLOW_HEADERS = default_headers + ( 'Access-Control-Allow-Origin', ) CORS_ORIGIN_WHITELIST = ( 'localhost:3000', '127.0.0.1:3000', ) I have looked everywhere, followed every doc, I have tried setting CORS_ORIGIN_ALLOW_ALL to True.... everything I came across to, but nothing works. This is a piece of crap!
@PremSai2244
@PremSai2244 4 жыл бұрын
hi @JustDjango. please add a tutorial on retaining the state of the app after a refresh.
@ronitmishra8917
@ronitmishra8917 5 жыл бұрын
How about a search bar? Can you do a video on that?
@dillanteagle3726
@dillanteagle3726 6 жыл бұрын
What about the URL for the api after heroku deployment?
@jgartsu12
@jgartsu12 4 жыл бұрын
Did anyone get the following error Unhandled Rejection (TypeError): Cannot read property 'push' of undefined aftering trying to do POST request?
@Bso3350
@Bso3350 5 жыл бұрын
Thank you so much for this series, it's really great. How do you force a redirection to login? I tried to set up a protected route but I have a "Maximum update depth exceeded" error. Thank you!
@mattfreire
@mattfreire 5 жыл бұрын
Thank you. Check out our private route component in this project: github.com/justdjango/facial-recognition-saas/blob/master/src/routes.js
@Bso3350
@Bso3350 5 жыл бұрын
@@mattfreire Thank you so much! This is awesome!
@gerarddevine8707
@gerarddevine8707 6 жыл бұрын
Hi. How do I switch my dev environment back to using the (react) code in src? As it stands I now need to npm rebuild each time I make a change to see the effect of that change.
@gerarddevine8707
@gerarddevine8707 6 жыл бұрын
Ah, worked it out. I just revert back to using serving the react side seperately using 'npm start'.
@chenglin2020
@chenglin2020 4 жыл бұрын
how can i redirect login page if login false,it always render to index page whatever login success or fail i want to try give the redirect url in auth.js but i don't know how to do it
@БорисБ-е7т
@БорисБ-е7т 6 жыл бұрын
Thank you!
@OxMiroslav
@OxMiroslav 6 жыл бұрын
Hi guys, can I ask you to create/share multi-language django app tutorial (template and database)? Thank you very much!
@innocent3163
@innocent3163 2 жыл бұрын
We need more video ,, please more advance video 😔😔😔😔
@kaylinkhanal3059
@kaylinkhanal3059 5 жыл бұрын
I Cant resolve this error stating: MultiValueDictKeyError at /assignments/ 'teacher'
@savannahgilmour2325
@savannahgilmour2325 5 жыл бұрын
👍👍👍👍
@innocent3163
@innocent3163 2 жыл бұрын
With Django
Build an API with Django // Part 1 - What is an API?
16:28
Matt Freire
Рет қаралды 87 М.
Django Channels Tutorial - 5 // Chat models and API
20:03
Matt Freire
Рет қаралды 18 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
Django Dynamic Forms Tutorial with Htmx
48:27
Matt Freire
Рет қаралды 70 М.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 672 М.
PayPal Payments Tutorial with Django and React
47:16
Matt Freire
Рет қаралды 11 М.
Token Authentication in Django Rest Framework
19:49
IamPython
Рет қаралды 2,7 М.
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,2 МЛН
Django tutorial - How to improve your Django admin
18:20
Matt Freire
Рет қаралды 53 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН