Skip to content

Adjust example in docs or add warning #1461

@OttoAndrey

Description

@OttoAndrey

Hello! I tried this example from docs and it didn't work. I spent couple of hours to figure it out :(
But it doesn't work because two settings in the same time: response_only and requests_only. Do they interfere with each other?

Shouldn't it raise warning or raise error if both of them have True value?
Or maybe at least mark one of them with # in the beginning of the row? Like this

            request_only=True, # signal that example only applies to requests
            # response_only=True, # signal that example only applies to responses

because I believe examples should work after simple copy-paste without any changes :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions