{"issue":{"created_at":"2011-11-18T14:58:33Z","state":"open","updated_at":"2011-11-19T14:23:14Z","user":{"gravatar_id":"08d5ea1987e397737e3c0622b1338ac4","id":278423,"url":"https://api.github.com/users/Aeron","login":"Aeron","avatar_url":"https://secure.gravatar.com/avatar/08d5ea1987e397737e3c0622b1338ac4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"After I install CacheOps and configure it, every request raises ImportError without breaking anything on site. Seems very odd that autodiscover() somehow involved.\r\nCacheOps 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.\r\n\r\n```\r\nTraceback (most recent call last):\r\n\r\n File \"/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py\", line 101, in get_response\r\n   request.path_info)\r\n\r\n File \"/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py\", line 250, in resolve\r\n   for pattern in self.url_patterns:\r\n\r\n File \"/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py\", line 279, in _get_url_patterns\r\n   patterns = getattr(self.urlconf_module, \"urlpatterns\", self.urlconf_module)\r\n\r\n File \"/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py\", line 274, in _get_urlconf_module\r\n   self._urlconf_module = import_module(self.urlconf_name)\r\n\r\n File \"/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py\", line 35, in import_module\r\n   __import__(name)\r\n\r\n File \"/var/www/launchnow/urls.py\", line 9, in <module>\r\n   admin.autodiscover()\r\n\r\n File \"/usr/local/lib/python2.6/dist-packages/django/contrib/admin/__init__.py\", line 22, in autodiscover\r\n   mod = import_module(app)\r\n\r\n File \"/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py\", line 35, in import_module\r\n   __import__(name)\r\n\r\nImportError: No module named cacheops\r\n```","assignee":null,"id":2280850,"number":6,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"ImportError: No module named cacheops","closed_at":null,"html_url":"https://github.com/Suor/django-cacheops/issues/6","milestone":null,"url":"https://api.github.com/repos/Suor/django-cacheops/issues/6"},"action":"created","comment":{"created_at":"2011-11-19T14:23:14Z","updated_at":"2011-11-19T14:23:14Z","user":{"gravatar_id":"83bf61e125add4ede96b648cbc7c255b","id":284103,"url":"https://api.github.com/users/Suor","login":"Suor","avatar_url":"https://secure.gravatar.com/avatar/83bf61e125add4ede96b648cbc7c255b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"There is one more thing you can try - comment out code that patches admin to bypass cache. It can somehow cause import cycle.\r\n\r\nSee it here:\r\nhttps://github.com/Suor/django-cacheops/blob/master/cacheops/query.py#L481\r\n","id":2798949,"url":"https://api.github.com/repos/Suor/django-cacheops/issues/comments/2798949"}}