Skip to content

Support for django-channels #58

@aqeelat

Description

@aqeelat

Hi,

When I follow the tutorial for setting up the library, I noticed this sequence of events when I run the app:

  1. The reloader is loaded. With it, a cid is generated and included in the log.
  2. When a request is made, the library gets and returns the correct cid to the caller.
  3. At the end of the request lifecycle, channel prints the access log, a new cid is generated and included in the log.
  4. When another request is made, the library, again, gets and returns the correct cid to the caller.
  5. At the end of the request lifecycle, the same cid as in step 3 is used in the log. This same cid is used in all subsequent access logs.

Channels log definition: https://github.com/django/channels/blob/main/channels/management/commands/runserver.py#L142
Helpful PR: https://github.com/django/channels/pull/693/files
The line that generates the response in channels: https://github.com/django/channels/blob/main/channels/http.py#L256

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions