Blog API with Django Rest Framework 11 of 33 - Custom Permissions

preview_player
Показать описание
Blog API with Django Rest Framework 11 of 33 - Custom Permissions

** Blog API with Django Rest Framework ** is a project to build a RESTful API service for the blog we created in Advancing the Blog and Try Django 1.9.

RESTful API services allow our applications to connect with other applications using JSON-formatted data. An strong API can enhance our applications ability to provide value to other services and end users. This type of API is very common in modern web application development.

Generally the topics will include:
- Django Project Setup
- Class Based Views (& some Function Based Views)
- Models, Model Forms, Forms, Form Validation
- Integrate Bootstrap front-end framework.
- Django Registration Redux for Authentication/Registration
- And More

We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.

What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.

All of our tutorials have a simple goal in mind: get you building something real and quickly.
Рекомендации по теме
Комментарии
Автор

Thank you so much, the very last example you sited helped me solve a huge issue I was facing...

MistaWu
Автор

Nice tutorial but watch out for the permission guys because if you put GET and PUT in the same safe_methods list Django will ignore PUT because this list interprets as "GET or PUT" not "GET and PUT" so you will bypass the page because you were allowed to do the GET method in the first place which means that anyone will be able to edit the post in the end, so the best method that he showed is the one that you only have the has_object_permission because this one hands the permission to the user as it should !!!

Andandonafronteira
Автор

I am confused, if it is in safe methods you return true, regardless of the user being the owner of the post. Thanks for the content by the way.

MrInexistent
Автор

Hi thanks for the tuto but i have a probleme with the costum message it is not displayed i use django rest framework 3.4.4

kaislabiedh
Автор

"Later versions of django-rest-framework removed Django 1.8 & 1.9 compatibility code", to be able to use permissions on this tutorial, the django-rest has to be v.3.3.3

soheilamasoudian
Автор

can i use my custom validations like mixins also ?

ktorres
Автор

Did not understand the last few minute part... when to use PUT ??

shagunbandi
Автор

I noticed you cannot use permissions for list views.

VicusBass
Автор

Normally I think your videos are excellent and clear, but the last few minutes of this one fall apart.  We're not all experts.

RealSoundNow
visit shbcf.ru