Skip to content

Error when enabling ExperimentsRetentionMiddleware in Django 1.10 #154

@ivanistheone

Description

@ivanistheone

I got this error after adding experiments.middleware.ExperimentsRetentionMiddleware to the MIDDLEWARE key in settings.py on a Django 1.10 site:

Traceback (most recent call last):
    ...
    return WSGIHandler()
  File "...django/core/handlers/wsgi.py", line 153, in __init__ 
    self.load_middleware()
  File "...django/core/handlers/base.py", line 82, in load_middleware
    mw_instance = middleware(handler)
TypeError: object() takes no parameters

seems to be related to https://docs.djangoproject.com/en/1.10/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions