{"issue":{"title":"3rd party apps breaking","created_at":"2011-10-11T21:08:30Z","user":{"login":"kevinpostal","id":157747,"url":"https://api.github.com/users/kevinpostal","gravatar_id":"fb89664a802ee41cf89ab7bed6392fcd","avatar_url":"https://secure.gravatar.com/avatar/fb89664a802ee41cf89ab7bed6392fcd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"labels":[],"updated_at":"2011-12-24T01:50:35Z","state":"open","id":1880978,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"html_url":"https://github.com/Suor/django-cacheops/issues/3","body":" Been using this app called feedjack (http://www.feedjack.org/) to grab feeds  \r\n\r\n    Traceback (most recent call last):\r\n      File \"feedjack_update.py\", line 505, in <module>\r\n        main()\r\n      File \"feedjack_update.py\", line 488, in main\r\n        for feed in models.Feed.objects.filter(is_active=True):\r\n      File \"/usr/local/lib/python2.6/dist-packages/django/db/models/query.py\", line 107, in _result_iter\r\n        self._fill_cache()\r\n      File \"/usr/local/lib/python2.6/dist-packages/django/db/models/query.py\", line 772, in _fill_cache\r\n        self._result_cache.append(self._iter.next())\r\n      File \"/usr/local/lib/python2.6/dist-packages/cacheops/query.py\", line 301, in iterator\r\n        cache_this = self._cacheprofile is not None and 'fetch' in self._cacheops\r\n    AttributeError: 'QuerySet' object has no attribute '_cacheprofile'\r\n\r\nI'm not caching any of the feed jack models\r\n\r\n\r\n    CACHEOPS = {\r\n        'pad.padportfoliothumb': ('all', 60*60),\r\n        'pad.*':  ('just_enable', 60*60),\r\n    }\r\n","number":3,"url":"https://api.github.com/repos/Suor/django-cacheops/issues/3","comments":11,"assignee":null},"comment":{"created_at":"2011-12-24T01:50:35Z","user":{"login":"Suor","id":284103,"url":"https://api.github.com/users/Suor","gravatar_id":"83bf61e125add4ede96b648cbc7c255b","avatar_url":"https://secure.gravatar.com/avatar/83bf61e125add4ede96b648cbc7c255b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-24T01:50:35Z","id":3266100,"body":"The problem with this most surely is cacheops not installed properly which happens when you use separate script with django - that can be some old-style cron job (not using `manage.py`) or wsgi startup script.\r\n\r\nThe solution for now is to add `import cacheops` to your script. I will look into making it work transparently.","url":"https://api.github.com/repos/Suor/django-cacheops/issues/comments/3266100"},"action":"created"}