Собрали в одном месте самые важные ссылки
консультируем про IT, Python
This article looks at how to build custom permission classes in Django REST Framework (DRF).
A “magic number” is the anti-pattern of using a number directly rather than storing it in a descriptive variable name. In web code HTTP status codes are often used as magic numbers, perhaps because web developers memorize common codes such as 200 and 404. In Python, we can avoid such magic with descriptive references from the standard library’s http.HTTPStatus enum.
Let’s look at two ways to use HTTPStatus in our Django code.
This article looks at how permissions work in Django REST Framework.