Switch from MIDDLEWARE_CLASSES to new MIDDLEWARE setting.
Switch from MIDDLEWARE_CLASSES to new MIDDLEWARE setting.

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

open-craft/opencraft,open-craft/opencraft,open-craft/opencraft,open-craft/opencraft,open-craft/opencraft