Suor/django-cacheops — Issue #6: ImportError: No module named cacheops
Author: Aeron
Created: 2011-11-18 14:58:33+00:00
State: open

After I install CacheOps and configure it, every request raises ImportError without breaking anything on site. Seems very odd that autodiscover() somehow involved.
CacheOps module is first in INSTALLED_APPS. Everything seems ok, but I suppose that if CACHEOPS have an “all” value for “*.*” key it might be the reason. I know that in real world it is stupid to do config like this, but it was a test and you may be interested in results.

```
Traceback (most recent call last):

File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 101, in get_response
request.path_info)

File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 250, in resolve
for pattern in self.url_patterns:

File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 279, in _get_url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 274, in _get_urlconf_module
self._urlconf_module = import_module(self.urlconf_name)

File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)

File "/var/www/launchnow/urls.py", line 9, in
admin.autodiscover()

File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/__init__.py", line 22, in autodiscover
mod = import_module(app)

File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)

ImportError: No module named cacheops
```