А теперь о том, что происходило в последнее время на других ресурсах.
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.
How much memory are your Pandas DataFrame or Series using? Pandas provides an API for measuring this information, but a variety of implementation details means the results can be confusing or misleading.