Skip to content

update to middleware readme example #14

@adamyala

Description

@adamyala

Thank you for the wonderful module! It saved me the trouble of having to reinvent the wheel.

Please let me know if a PR with the below change would be welcome.

Currently, the example in the README uses MIDDLEWARE_CLASSES. I believe this was the old setting for middleware and has been succeeded by MIDDLEWARE. I tested this module just now using MIDDLEWARE_CLASSES and I couldn't seem to get it working. I believe as of 1.10, MIDDLEWARE_CLASSES now has a different function https://docs.djangoproject.com/en/2.2/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware
To avoid confusion, I'd like to suggest changing MIDDLEWARE_CLASSES in the readme to MIDDLEWARE.

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