Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware setting in Django 1.10 #159

Closed
ukjin1192 opened this issue Jan 11, 2017 · 2 comments
Closed

Middleware setting in Django 1.10 #159

ukjin1192 opened this issue Jan 11, 2017 · 2 comments

Comments

@ukjin1192
Copy link
Contributor

Django >= 1.10 : MIDDLEWARE is list type.
Django < 1.9 : MIDDLEWARE_CLASSES is tuple type.

Details here : https://docs.djangoproject.com/en/1.10/releases/1.10/#new-style-middleware

Therefore,

MIDDLEWARE_CLASSES = (
    ...
    'silk.middleware.SilkyMiddleware',
    ...
)

would be

MIDDLEWARE = [
    ...
    'silk.middleware.SilkyMiddleware',
    ...
]
@avelis
Copy link
Collaborator

avelis commented Jan 11, 2017

@ukjin1192 If you would like to update the README with a PR I can happily merge it. I believe there are still users that are on versions that would require listing both styles.

@avelis
Copy link
Collaborator

avelis commented Jan 12, 2017

@ukjin1192 Thanks again for the PR!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants