When you mention official documentation, you just proves you are the best out there, you have motivated me to start shifting my learning approach from tutorial to documentations. Thanks a lot man, you are doing a great job
Other mentors talk and talk for hours to the point things become confusing. Dennis explains in 10 minutes with clarity and no 'fat'. I just love his teaching style. So far, best teacher I came across. Please Dennis upload more videos, you are the reason I am coding now
This deserves way more likes and shares. You are truly amazing!, I was not able to understand the Rest API even after watching so many videos but this one was AMAZING!
Dennis, You really understand what it takes for an efficient and modern app!! You manage the perfect languages to achieve success. I hope you help us with a bit of Celery in the future. Thanks so much my friend!!
I appreciate that Sebastian :) I definitely plan to do a few videos with Celery. I'm working on a few videos for this course and a the few projects so its been tough getting to it. Its highly requested.
Hey Dennis, i'm more familar with java + spring boot framework. But i recently got an job opportunity in python + django. I learned a lot from your tutorial about django, and in just few days i was able to create my first, simple app with basic GUI. Now i'm moving to django rest framework, i just wanted to say - thank you for your work. I think i will get this job, thanks to you :)
@@NishantCosmos i wanted to work in java, because there are much more job opportunities, but company i currently work for agreed to take me in if i can show them that i will be able to learn python. (it wasn't intended but i decided to go with it. Company location is very close to where i live and i already know people in there)
I jumped into python literally only yesterday, now I'm watching this LOL. But I'm already really familiar with express so it's not totally foreign... This is the kind of high intensity, no beating around the bush content I need though!! Thanks!!
The fundamentals are totally the same as with every framework. You have models, routers, and views. However, Django is convention over configuration. If I will compare anything to Express, that would be Flask web framework. Good luck anyway!
Thank you so much. Your explanation is so clear and I am very happy that I can run the code successfully in just once attempt :)) I hope I will complete my homework to create a django-react website
Hi , at 2:54 why did you have to explicitly specify the AppConfig inside the apps.py, when it was ok to just specify 'api' inside the INSTALLED_APPS? Just curious.
Kudos dude! I started watching your tutorial Django for Beginners (almost completed the project), then I moved on onto learning React because I saw greater market opportunities where I live. Then I actually got my first freelancer job as a React Developer, and at the same time some bigger company wanted to hire me to work with Python, Django and JavaScript. We are actually building an API manager. I am coming back to ur tutorials because I think it's going to help me to solve a problem I have with the admin dashboard of the project: I have a model with 2 Foreign Keys in Django and I need to pass that info to the frontend, there Backbone JS will handle the models, allow the user to add more fields to those models, or erase them, and then send the data back to the server). Thanks for all the effort and good work u r putting in these videos! Really appreciate the effort. How can we contribute for you to keep up the good work?? I think the Django-REST framework combined with React is a Hot Topic. I welcome more of those projects!
Hey, dude, awesome video! Keep up the great work. I love the fact that it’s condensed and fast paced and straight to the point! Really really cool. Just out of curiosity: do you have any Bulgarian roots? I noticed your surname is Ivanov. Peace out from Bulgaria ^_^
Thank you Dennis for such easy and simply tuorials . and for anyone whos looking to lock certain api request can do this from rest_framework.decorators import api_view , permission_classes from rest_framework.permissions import IsAuthenticated , IsAdminUser @api_view(['GET','DELETE']) @permission_classes((IsAuthenticated,IsAdminUser )) def productDetial(request,pk): try: product = Product.objects.get(id=pk) except Snippet.DoesNotExist: return HttpResponse(status=404) if request.method == 'GET': serializer = ProductSerializer(product) return Response(serializer.data) elif request.method == 'DELETE': product.delete() return HttpResponse(status=204)
And here I was using the "serializer.serialize" method... One question tho, if you have another model, for example, Subtask which is a child of a Task (foreign key), can you also access these subtasks after you serialize Task?
13:28 timestamp , localhost/api/task-list/ json data not found.. Task List GET /api/task-list/ HTTP 200 OK Allow: OPTIONS, GET Content-Type: application/json Vary: Accept [ ] empty list
hey! it's very nice tut. just wanna ask at 7:02 u told about some r url patterns, from where u copied the url patterns. can u provide a direct link can't find out
I like the series, but mine shows "no such table: todo_task" when I try to access task-list, actually where you have created the database and actual data?
i'm using postgres as the database and all the data is captured but when i try the post method it dosen't work the error is that the data is not valid can you give me a help thank you
0:53 what is rest api and why do we need it 1:40 Introduction to Django Rest API Framework documentation and how to install etc 2:22 How to install DRF 2:42 Django Project Setup overview, todo_drf/settings.py 3:00 models.py 3:21 todo_drf/urls.py 3:26 api/urls.py 3:30 api/views.py 5:50 DRF for function based views 7:08 Explaining all the pages we will create 7:36 api/view.py after all changes 7:58 Json response vs drf api view with ?format=json 8:05 Serializing data into JSON data 10:15 api/serializer.py 11:57 Serializing one vs many Tasks. 12:43 api/views.py after taskList view and all imports 13:08 api/urls.py after adding taskList view 13:30 the Tasks that Dennis created for the project 13:35 Start Detail View 14:27 api/views.py after adding detail view 15:15 api/urls.py after adding task detail view and fixing pk 15:45 Starting Create Task view 16:23 Introduction to request.data from an DRF API View 17:07 api/views.py after adding taskCreate view. 17:28 api/urls.py after adding taskCreate url 17:34 sending a POST request to add a task using DRF api view without using POSTMAN or anything else. 18:21 Starting the taskUpdate view. 19:14 api/views.py after adding the taskUpdate view 20:16 api/urls.py after adding taskUpdate url 20:17 Starting the taskDelete view 21:04 api/views.py after adding taskDelete view 21:22 api/urls.py after adding taskDelete url. Thank you for making this tutorial dennis. I watched this when it first came out a while back and was a little overwhelmed because i was still a beginner at django, but after working on a few django projects, I understand enough to follow this tutorial and have a better grasp of it. I made these timestamps so I could refer to it myself if I need a quickstart guide. All the other tutorials required me to download postman or insomnia and I appreciate that you made this tutorial without it first to keep it less overwhelming too.
your videos are amazing, they are all so helpful. u r literally the reason I use django. now, im trying to make an API with SSO system using django. could u please make a tutorial for it? it'd be really great.
Hey Denis i am watching this after a 3 months when i run /task-list/ after api/ it gives me error that Task has no member objects pls help or remake this video from starting so i can follow it stepwiseli
you might have to run python manage.py makemigrations, then python manage.py migrate, you also have to add from .models import Task admin.site.register(Task) for the admin.py file, also look up how to create super user so you can add tasks in the admin panel
Don't forget to check out my Complete Django course: dub.sh/NvGboTI
When you mention official documentation, you just proves you are the best out there, you have motivated me to start shifting my learning approach from tutorial to documentations.
Thanks a lot man, you are doing a great job
Watching your tutorials makes me more confident about the interviews.
Your channel is a goldmine for my Django learning journey. Thank you so much for sharing this quality content!
He is the django legend for me. He is my go to guy for django and never disappoint.
Other mentors talk and talk for hours to the point things become confusing. Dennis explains in 10 minutes with clarity and no 'fat'. I just love his teaching style. So far, best teacher I came across. Please Dennis upload more videos, you are the reason I am coding now
no one can teach like you.. especially in very short time and straight to the point
This deserves way more likes and shares. You are truly amazing!, I was not able to understand the Rest API even after watching so many videos but this one was AMAZING!
This has to be one of the most straightforward, concise, and culled videos on Django I have ever seen. 10/10
The simplest explanation of Django Rest Framework in such a short period of time. Straight to the point. Really amazing
That's why I give your channel name to everyone who seeks point to point programming. Beautifully explained and delivered.👌
simple and best i watced lots of videos for rest_framwork but here i got whati wanted . thanks brother you deserve millions of subscriber
day 2 of my internship and im leraning REST from you. thanks dennis.
Dennis, You really understand what it takes for an efficient and modern app!!
You manage the perfect languages to achieve success. I hope you help us with a bit of Celery in the future. Thanks so much my friend!!
I appreciate that Sebastian :) I definitely plan to do a few videos with Celery. I'm working on a few videos for this course and a the few projects so its been tough getting to it. Its highly requested.
Most crisp django rest framework tutorial out there. Straight to the point. Thanks!
BEST DJANGO REST TUTORIAL. Seen them all, even udemys. This is condensed, perfectly explain. Keept it pretty vanilla but in enoguh dept. Congrats!
Thank you! I still need to get back to this series. Got caught up with a few other projects.
The way you explain and keep it as simple as possible is really beautiful. Thank you
Explained in a very simple and easily understandable way. Thanks a lot Dennis! Your channel definitely deserves more views and subs
Eagerly waiting for this series, you're awesome.
Ah! This is high quality content Dennis! Thanks for the video! 😊
I appreciate that Aashay :)
This is probably the best backend tutorial I have seen. Django > node
Hey Dennis, i'm more familar with java + spring boot framework. But i recently got an job opportunity in python + django. I learned a lot from your tutorial about django, and in just few days i was able to create my first, simple app with basic GUI. Now i'm moving to django rest framework, i just wanted to say - thank you for your work. I think i will get this job, thanks to you :)
Wow congrats 🎉 So happy my videos were helpful for you! Best of luck!
why you learned java if u wanted to work with django
@@NishantCosmos i wanted to work in java, because there are much more job opportunities, but company i currently work for agreed to take me in if i can show them that i will be able to learn python. (it wasn't intended but i decided to go with it. Company location is very close to where i live and i already know people in there)
Mate!! You are a legend and the best. You have just made this so much easier to understand!!
I really love this particular tutorial. Very short and concise. Was a great refresher for me
Thanks man, finally somebody who explains it well.
You are making look Django Rest Framework so Easy....Great work brother....Straight away I subscribed your channel..
Explained in such a simple way. Awesome work.
I jumped into python literally only yesterday, now I'm watching this LOL. But I'm already really familiar with express so it's not totally foreign... This is the kind of high intensity, no beating around the bush content I need though!! Thanks!!
The fundamentals are totally the same as with every framework. You have models, routers, and views. However, Django is convention over configuration. If I will compare anything to Express, that would be Flask web framework. Good luck anyway!
And i notice your comment was one year ago so you probably know more of Django by now I suppose.
Thanks you so much 🥰
Using django restframework was a nightmare for me until I watched this video
An awesome short tutorial, a refresher for Django Rest Framework. Thanks for sharing it.
You are the best! Thx for the video! I am stucked on my project and your two videos gives the answer to it. Thx!
The best tutorials I've ever seen
THANK YOU!
Dangal.
Budy, thank you so much! You gave an extremely wealth knowledge in a so easy way!
I'm all for this! Subscribed for more django REST framework + react.
Is it just me or is it refreshing seeing a tutorial that’s using windows?
Lol no. Also sublime text is pretty cringe compared to neovim, pycharm or vscode
Awesome! Excited for what's to come in the series! Much thanks!
Thanks for watching :)
Nice tutorial bro, it helped me a lot to understand restframework
ooooh the best django rest api tutoriel ,the simple and the faste one.
It is Really very helpful to learning 🔥 Django from your every video... I want to thank you bro for your all tutorials.
.
.
You "vera level"❤️
Your tutorials are really great. Great work
I'm in 2024 and this is my first crud in django and you made it so simple thank you so much 🎉
Thank you so much dennis...U are helping a lot of people with your amazing and extremely useful contents 🙏
Thank you Sooo much ,, your tutorials are very straightforward ,, with minimized complexities .
must say the way you explain make it so simple!
Awesome Dennis, I am loving your videos :) real informative video..
You make the concept very clear. Thank You.
dennis ,thanks alot,i appreciate you,you just saved my life.
Keep going my friend! Thank you for your feedback :)
Thank you for providing source code in the description
I just love how you explain things
🙇🏿thank you
Excellent work, Hope some tutorial how to work "scheduling request" (using celery) with django rest api
Soon my friend :) Thanks for your support and feedback!
Hope so it'll be another great series..
Thanks walid! By the way I got your email, sorry i haven't had a chance to reply. Congrats on solving the problem you were having!
Thank you Dennis. i completd CRUD APIs for ToDo.
Thanks to the best Django tutor out there.✌️
Excellent work, really smooth and perfect
Really talented mentor thank you for starightforward tutorials
Thank you so much. Your explanation is so clear and I am very happy that I can run the code successfully in just once attempt :)) I hope I will complete my homework to create a django-react website
At last, i found something precise... Thanks for it
Hi , at 2:54 why did you have to explicitly specify the AppConfig inside the apps.py, when it was ok to just specify 'api' inside the INSTALLED_APPS? Just curious.
Same question
Kudos dude! I started watching your tutorial Django for Beginners (almost completed the project), then I moved on onto learning React because I saw greater market opportunities where I live. Then I actually got my first freelancer job as a React Developer, and at the same time some bigger company wanted to hire me to work with Python, Django and JavaScript. We are actually building an API manager. I am coming back to ur tutorials because I think it's going to help me to solve a problem I have with the admin dashboard of the project: I have a model with 2 Foreign Keys in Django and I need to pass that info to the frontend, there Backbone JS will handle the models, allow the user to add more fields to those models, or erase them, and then send the data back to the server).
Thanks for all the effort and good work u r putting in these videos! Really appreciate the effort. How can we contribute for you to keep up the good work??
I think the Django-REST framework combined with React is a Hot Topic. I welcome more of those projects!
So how's your project going
You're awesome Dennis, you deliver a lot with your work thanks
I appreciate that Ryan :)
Great tutorial. Perfect tempo, covered a lot so it is easy to get started. Thanks.
Hey, dude, awesome video! Keep up the great work. I love the fact that it’s condensed and fast paced and straight to the point! Really really cool. Just out of curiosity: do you have any Bulgarian roots? I noticed your surname is Ivanov. Peace out from Bulgaria ^_^
You do it like Superman. I will raise my hat to you
Thank you Dennis for such easy and simply tuorials .
and for anyone whos looking to lock certain api request can do this
from rest_framework.decorators import api_view , permission_classes
from rest_framework.permissions import IsAuthenticated , IsAdminUser
@api_view(['GET','DELETE'])
@permission_classes((IsAuthenticated,IsAdminUser ))
def productDetial(request,pk):
try:
product = Product.objects.get(id=pk)
except Snippet.DoesNotExist:
return HttpResponse(status=404)
if request.method == 'GET':
serializer = ProductSerializer(product)
return Response(serializer.data)
elif request.method == 'DELETE':
product.delete()
return HttpResponse(status=204)
Incredibly clear and helpful resource
Excellent video Dennis, thanks for sharing
To Clear and Crispy Content thanks brother
Excellent, It's really easy to understand
Awesome as always. Thank u so much Dennis.
wow... really nice explanation! thank you for an amazing video!
Short and sweet, thank you!
Clap for Dennis 👏
:)
Amazing ! Just what I was looking for
Amazing content Dennis!! thanks for sharing :D
Weldone Denis. Now onto front-end. Thank you
Absolutely!
Wow! How the fundamentals are cleared with such short time.
Thank you! clear and easy to follow.
thank you for all your you are the best youtuber
Nice tutorial...will wait for upcoming videos
Great great great!! Thank you so much for this awesome video
And here I was using the "serializer.serialize" method... One question tho, if you have another model, for example, Subtask which is a child of a Task (foreign key), can you also access these subtasks after you serialize Task?
13:28 timestamp , localhost/api/task-list/ json data not found..
Task List
GET /api/task-list/
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept
[ ]
empty list
timestamp 13:23
@@sagarkapse2129 sure, u haven't created any tasks yet.
You rock Dennis!
Man, your smile kills.
hey! it's very nice tut. just wanna ask at 7:02 u told about some r url patterns, from where u copied the url patterns. can u provide a direct link can't find out
Thank you man. You are the best.
Thank you so much, this is enough to get me started!
Thanks for the hard work, waiting for the next deployment..
Plz Continue these series
I like the series, but mine shows "no such table: todo_task" when I try to access task-list, actually where you have created the database and actual data?
Did you run the migrations?
@@victorvaida4272 no, thanku I'll try
@@jees__antony did it work?
@@acment yes, it worked fine,
I am learning django ...u r all django tutorial I can understand easily . will job saghaa hear saghaa mean brother as my own...
Thanks, this video helped me quite a lot!!!
where is the data coming from? the one you are accessing from the browser via the routes?
exactly
i'm using postgres as the database and all the data is captured but when i try the post method it dosen't work the error is that the data is not valid can you give me a help thank you
Can we create an api using django-rest framework that will connect to the database (given by url parameter )and query
the given table ???
0:53 what is rest api and why do we need it
1:40 Introduction to Django Rest API Framework documentation and how to install etc
2:22 How to install DRF
2:42 Django Project Setup overview, todo_drf/settings.py
3:00 models.py
3:21 todo_drf/urls.py
3:26 api/urls.py
3:30 api/views.py
5:50 DRF for function based views
7:08 Explaining all the pages we will create
7:36 api/view.py after all changes
7:58 Json response vs drf api view with ?format=json
8:05 Serializing data into JSON data
10:15 api/serializer.py
11:57 Serializing one vs many Tasks.
12:43 api/views.py after taskList view and all imports
13:08 api/urls.py after adding taskList view
13:30 the Tasks that Dennis created for the project
13:35 Start Detail View
14:27 api/views.py after adding detail view
15:15 api/urls.py after adding task detail view and fixing pk
15:45 Starting Create Task view
16:23 Introduction to request.data from an DRF API View
17:07 api/views.py after adding taskCreate view.
17:28 api/urls.py after adding taskCreate url
17:34 sending a POST request to add a task using DRF api view without using POSTMAN or anything else.
18:21 Starting the taskUpdate view.
19:14 api/views.py after adding the taskUpdate view
20:16 api/urls.py after adding taskUpdate url
20:17 Starting the taskDelete view
21:04 api/views.py after adding taskDelete view
21:22 api/urls.py after adding taskDelete url.
Thank you for making this tutorial dennis. I watched this when it first came out a while back and was a little overwhelmed because i was still a beginner at django, but after working on a few django projects, I understand enough to follow this tutorial and have a better grasp of it. I made these timestamps so I could refer to it myself if I need a quickstart guide. All the other tutorials required me to download postman or insomnia and I appreciate that you made this tutorial without it first to keep it less overwhelming too.
your videos are amazing, they are all so helpful. u r literally the reason I use django. now, im trying to make an API with SSO system using django. could u please make a tutorial for it? it'd be really great.
Hey Denis i am watching this after a 3 months when i run /task-list/ after api/ it gives me error that Task has no member objects pls help or remake this video from starting so i can follow it stepwiseli
you might have to run python manage.py makemigrations, then python manage.py migrate, you also have to add from .models import Task
admin.site.register(Task) for the admin.py file, also look up how to create super user so you can add tasks in the admin panel
Really helpful.
Dennis, could you please make a video on how to import 100s of XML data into sql tables at once using django serialisation
Thank you !!! it is something i was looking for...
great job bro!!! nice video!!!