'dogslow.WatchdogMiddleware' isn't a subclass of AppConfig.

Issue #21 resolved
齐叶 created an issue

Hi,

Using the tip branch with Python 3.5 and Django 1.9.7, I get the following error:

Unhandled exception in thread started by <_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x1074946d8>
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_monkey.py", line 565, in __call__
    return self.original_func(*self.args, **self.kwargs)
  File "/proj/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/proj/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/proj/lib/python3.5/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
    six.reraise(*_exception)
  File "/proj/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/proj/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/proj/lib/python3.5/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/proj/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/proj/lib/python3.5/site-packages/django/apps/config.py", line 131, in create
    "'%s' isn't a subclass of AppConfig." % entry)
django.core.exceptions.ImproperlyConfigured: 'dogslow.WatchdogMiddleware' isn't a subclass of AppConfig.

Comments (3)

  1. Thomas Smith

    I suspect that you've put dogslow.WatchdogMiddleware into INSTALLED_APPS rather than MIDDLEWARE_CLASSES.

  2. Log in to comment