File: 2.1.4.rst

package info (click to toggle)
python-django-channels 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 872 kB
  • sloc: python: 2,394; makefile: 154; sh: 8
file content (33 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2.1.4 Release Notes
===================

Channels 2.1.4 is another bugfix release in the 2.1 series.


Bugfixes & Small Changes
------------------------

* Django middleware is now cached rather than instantiated per request
  resulting in a significant speed improvement. Some middleware took seconds to
  load and as a result Channels was unusable for HTTP serving before.

* ChannelServerLiveTestCase now serves static files again.

* Improved error message resulting from bad Origin headers.

* ``runserver`` logging now goes through the Django logging framework to match
  modern Django.

* Generic consumers can now have non-default channel layers - set the
  ``channel_layer_alias`` property on the consumer class

* Improved error when accessing ``scope['user']`` before it's ready - the user
  is not accessible in the constructor of ASGI apps as it needs an async
  environment to load in. Previously it raised a generic error when you tried to
  access it early; now it tells you more clearly what's happening.


Backwards Incompatible Changes
------------------------------

None.