views:

7

answers:

1

ImproperlyConfigured: Middleware module "report" does not define a "ReportMiddleware" class

But I had defined this, but probably defined in wrong place, so where should I place this class file?

A: 

You should put it within the module in the package as specified in the MIDDLEWARE_CLASSES setting.

Ignacio Vazquez-Abrams
Yes, I did this in settings.py
That's nice. Is it in the module in the package specified?
Ignacio Vazquez-Abrams
Found the issue, sorry, my bad.