Doh, mixed up some INSTALLED_APPS in MIDDLEWARE_CLASSES