Django REST API Tutorial - Request/Response Cycle #1 (2018)

  Рет қаралды 30,573

The Dumbfounds

The Dumbfounds

Күн бұрын

In this django rest api tutorial you will learn about rest api design and build one using the django rest framework. This episode is intended to give you a high-level overview of how the basic request-response cycle works, both with and without AJAX.
7 Tips For Getting Better At Django:
mailchi.mp/dea...
Github repository for this tutorial series:
github.com/The...
Traditionally, we reload a page, which sends a request to a url on the server. On there, we check whether that url exists, and if it does, we return a response which, most times, contains an HTML page with embedded CSS and JavaScript. Oftentimes, this approach is completely fine and just what you need!
On the other side, we can build a REST API which has url endpoints that can be used to either GET, POST, DELETE or PUT (update) data. Most times, this affects a database. The request is sent with JavaScript (in the case of a web application) or any other language if you're building for mobile/desktop, as pretty much all modern languages support the file format JSON.
With this approach, we have to still load an initial page, but from that point on, we can send asyncronous requests to a REST API and, for example in the case of a GET request, use the data to make a change on our webpage without having to reload it (that's how you build single-page applications).
Anyway, I hope this shines some light on the dark!
If you enjoyed this video, make sure to subscribe and share it with anyone you think could enjoy it as well.
I hope to see you inside of the next episode,
Cheers.

Пікірлер: 18
@paristar3079
@paristar3079 5 жыл бұрын
Make this series in a playlist
@PedroRamos1991
@PedroRamos1991 6 жыл бұрын
Nice video. Thank you!
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
Pedro Ramos you're welcome!
@ntsagar9
@ntsagar9 5 жыл бұрын
Hi I watch your all videos it’s very good content. Thank you 🙏🙏 Can you please make video on ads in django and who paid more money for ads. Thank you again 🙏🙏
@vic_shine
@vic_shine 6 жыл бұрын
Hey, thanks for video! Would be great to see similar awesome tutorials about future of API - GraphQL :) For example, Django + Graphene solution.
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
Vic Shóstak Yep, thought about that already. Maybe I‘ll make it happen!
@electrichimp
@electrichimp 5 жыл бұрын
When working with a React, do you consider Django REST Api a good combination compared to an Express Rest Api? PS. Thanks for the video!
@thedumbfounds767
@thedumbfounds767 5 жыл бұрын
I haven't used Express, sorry!
@orbinmatrix
@orbinmatrix 4 жыл бұрын
Drf is best bro
@johnnycatsville5486
@johnnycatsville5486 6 жыл бұрын
Hey, what happened to part 3? Why is it deleted? Should we expect re-upload?
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
Hey, I haven't deleted it. It will come out on saturday!
@johnnycatsville5486
@johnnycatsville5486 6 жыл бұрын
The Dumbfounds Yay! Then see you on Saturday. It's just KZbin showed it as deleted video if something. Thank you for your work!
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
You're welcome, thanks for watching! I oftentimes schedule the videos and add them to the playlists beforehand, which is why when I take them off to make some adjustments, youtube displays them as deleted ;)
@raghunandanr9013
@raghunandanr9013 5 жыл бұрын
how to Create signup api using django rest framework
@daytraderph
@daytraderph 4 жыл бұрын
are you still interested in making video , can make a project web site based on DRF ?
@Mary0Kule
@Mary0Kule 6 жыл бұрын
Thanks! There is a bad link to github :)
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
Thanks for letting me know, fixed! ;)
@patrickknows2296
@patrickknows2296 4 жыл бұрын
WTF are you saying at the start of your video.. Are you eating your words
Django REST Framework Oversimplified
9:43
Dennis Ivy
Рет қаралды 365 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
#8 Django tutorials | GET vs POST | HTTP Methods
6:07
Telusko
Рет қаралды 208 М.
How To Call a REST API In Java - Simple Tutorial
29:14
Coding with John
Рет қаралды 296 М.
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 396 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 228 М.
Django Interview Questions (Junior Developer)
30:26
Dennis Ivy
Рет қаралды 132 М.
Django Tutorial for Beginners - Build Powerful Backends
1:02:36
Programming with Mosh
Рет қаралды 2,8 МЛН
Getting Started With Django REST Framework
26:31
Pretty Printed
Рет қаралды 199 М.
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,2 МЛН
Python Django REST API In 30 Minutes - Django Tutorial
30:42
PedroTech
Рет қаралды 58 М.