Closed Lacsw closed 2 years ago
add as_asgi() classmethod to re_path. This is similar to Django’s as_view(), which plays the same role for per-request Django view instances.
This has been updated in the new edition of the book, that uses Channels v3. https://github.com/PacktPublishing/Django-4-by-example/blob/main/Chapter16/educa/chat/routing.py
add as_asgi() classmethod to re_path. This is similar to Django’s as_view(), which plays the same role for per-request Django view instances.