memcache-debug-panel icon indicating copy to clipboard operation
memcache-debug-panel copied to clipboard

Broken in Django 1.8

Open tomleo opened this issue 9 years ago • 1 comments

The following errors are triggered when doing any memcached operations while memcache-debug-panel is installed.

  File "/home/tom/program/env_new/local/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", line 97, in delete
    self._cache.delete(key)
  File "/home/tom/program/env_new/local/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", line 175, in _cache
    self._client = self._lib.Client(self._servers, pickleProtocol=pickle.HIGHEST_PROTOCOL)
  File "/home/tom/program/env_new/local/lib/python2.7/site-packages/memcache.py", line 218, in __init__
    super(Client, self).__init__()
TypeError: __init__() takes at least 2 arguments (1 given)

tomleo avatar Nov 19 '15 20:11 tomleo

Sorry. Haven't touched this in quite some time. Not surprised it's broken with the (much) newer Django releases. Depending on what you're looking for the built-in cache stuff might give you the info.

I'd be happy to accept a PR with fixes, but won't have a chance to look in to this myself anytime soon.

ross avatar Nov 22 '15 19:11 ross