В мире Django набирает популярность дополнение Django Channels. Эта библиотека должна принести в Django асинхронное сетевое программирование, которое мы так долго ждали. Артём Малышев на Moscow Python Conf 2017 объяснил, как она это делает, зачем она это делает и делает ли вообще. Прежде всего, дзен…
django-registration is a user registration package for Django. The django-registration package provides tools for implementing user-account registration flows in the Django web framework. In django-registration prior to 3.1.2, the base user-account registration view did not properly apply filters to sensitive data, with the result that sensitive data could be included in error reports rather than removed automatically by Django. Triggering this requires: A site is using django-registration < 3.1.2, The…
→ Оригинальная документация Руководство Текущее руководство предполагает использование Django версии 1.8.0 и выше. Термины: model — модель queryset — выборка template — шаблон view — представление Ставим django-tables2: pip install django-tables2 Добавляем django-tables2 в INSTALLED_APPS Добавляем 'django.template.context_processors.request' в context_processors в секции настроек шаблонов OPTIONS. Начнем с создания небольшого приложения. Читать дальше →
Django Channels 3.x before 3.0.3 allows remote attackers to obtain sensitive information from a different request scope. The legacy channels.http.AsgiHandler class, used for handling HTTP type requests in an ASGI environment prior to Django 3.0, did not correctly separate request scopes in Channels 3.0. In many cases this would result in a crash but, with correct timing, responses could be sent to the wrong client, resulting in potential leakage of session identifiers and other sensitive data. Note that…