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

Update middleware setting for Django >= 1.10 #160

Merged
merged 1 commit into from
Jan 11, 2017
Merged

Update middleware setting for Django >= 1.10 #160

merged 1 commit into from
Jan 11, 2017

Conversation

ukjin1192
Copy link
Contributor

@ukjin1192 ukjin1192 commented Jan 11, 2017

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 avelis merged commit db6afbc into jazzband:master Jan 11, 2017
@avelis
Copy link
Collaborator

avelis commented Jan 11, 2017

@ukjin1192 Thanks for the contribution.

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

Successfully merging this pull request may close these issues.

2 participants