Re: Unable to parse connection string: "" when using django cache
Thanks I had not caught that but I am not sure if that is the issue. On Thu, Mar 17, 2016 at 7:39 AM,wrote: > As an aside, it looks like you're including CommonMiddleware twice. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/zuPKMjHyWbs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/80e6b310-d6ae-46d2-9268-13006125b248%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMhuDe_3h4rQrHtNtHwAOds3in6GzZaRvWX8AWt9fH7Hmuwtbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Unable to parse connection string: "" when using django cache
As an aside, it looks like you're including CommonMiddleware twice. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/80e6b310-d6ae-46d2-9268-13006125b248%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Unable to parse connection string: "" when using django cache
Setting the key CACHE_MIDDLEWARE_ALIAS to 'default' fixes the issue Cheers, Nanda On Thursday, March 10, 2016 at 5:02:37 PM UTC-8, nav wrote: > > Sorry forgot to add the traceback I am getting: > > Internal Server Error: / > Traceback (most recent call last): > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", > > line 88, in get_response > response = middleware_method(request) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/middleware/cache.py", > > line 147, in process_request > cache_key = get_cache_key(request, self.key_prefix, 'GET', > cache=self.cache) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/utils/cache.py", > > line 212, in get_cache_key > headerlist = cache.get(cache_key, None) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", > > line 75, in get > val = self._cache.get(key) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", > > line 163, in _cache > self._client = self._lib.Client(self._servers, > pickleProtocol=pickle.HIGHEST_PROTOCOL) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", > > line 223, in __init__ > self.set_servers(servers) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", > > line 302, in set_servers > for s in servers] > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", > > line 1317, in __init__ > raise ValueError('Unable to parse connection string: "%s"' % host) > ValueError: Unable to parse connection string: "" > > Exception happened during processing of request from ('127.0.0.1', 52825) > > [11/Mar/2016 00:59:39] "GET / HTTP/1.1" 500 118134 > Traceback (most recent call last): > File > "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", > > line 86, in run > self.finish_response() > File > "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", > > line 131, in finish_response > self.close() > File > "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py", > > line 36, in close > SimpleHandler.close(self) > File > "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", > > line 259, in close > self.result.close() > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/http/response.py", > > line 305, in close > signals.request_finished.send(sender=self._handler_class) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/dispatch/dispatcher.py", > > line 185, in send > response = receiver(signal=self, sender=sender, **named) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", > > line 100, in close > self._cache.disconnect_all() > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", > > line 163, in _cache > self._client = self._lib.Client(self._servers, > pickleProtocol=pickle.HIGHEST_PROTOCOL) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", > > line 223, in __init__ > self.set_servers(servers) > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", > > line 302, in set_servers > for s in servers] > File > "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", > > line 1317, in __init__ > raise ValueError('Unable to parse connection string: "%s"' % host) > ValueError: Unable to parse connection string: "" > [11/Mar/2016 00:59:39] "GET / HTTP/1.1" 500 59 > Traceback (most recent call last): > File > "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", > > line 599, in process_request_thread > self.finish_request(request, client_address) > File > "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", > > line 334, in finish_request > self.RequestHandlerClass(request, client_address, self) > File >
Re: Unable to parse connection string: "" when using django cache
Sorry forgot to add the traceback I am getting: Internal Server Error: / Traceback (most recent call last): File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 88, in get_response response = middleware_method(request) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/middleware/cache.py", line 147, in process_request cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/utils/cache.py", line 212, in get_cache_key headerlist = cache.get(cache_key, None) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", line 75, in get val = self._cache.get(key) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", line 163, in _cache self._client = self._lib.Client(self._servers, pickleProtocol=pickle.HIGHEST_PROTOCOL) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", line 223, in __init__ self.set_servers(servers) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", line 302, in set_servers for s in servers] File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", line 1317, in __init__ raise ValueError('Unable to parse connection string: "%s"' % host) ValueError: Unable to parse connection string: "" Exception happened during processing of request from ('127.0.0.1', 52825) [11/Mar/2016 00:59:39] "GET / HTTP/1.1" 500 118134 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 86, in run self.finish_response() File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 131, in finish_response self.close() File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py", line 36, in close SimpleHandler.close(self) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 259, in close self.result.close() File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/http/response.py", line 305, in close signals.request_finished.send(sender=self._handler_class) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185, in send response = receiver(signal=self, sender=sender, **named) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", line 100, in close self._cache.disconnect_all() File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", line 163, in _cache self._client = self._lib.Client(self._servers, pickleProtocol=pickle.HIGHEST_PROTOCOL) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", line 223, in __init__ self.set_servers(servers) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", line 302, in set_servers for s in servers] File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/memcache.py", line 1317, in __init__ raise ValueError('Unable to parse connection string: "%s"' % host) ValueError: Unable to parse connection string: "" [11/Mar/2016 00:59:39] "GET / HTTP/1.1" 500 59 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 599, in process_request_thread self.finish_request(request, client_address) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File "/Users/nchandrasekhar/PycharmProjects/horizon/.venv/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 126, in __init__ super(WSGIRequestHandler, self).__init__(*args, **kwargs) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 655, in __init__ self.handle() File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py", line 131, in handle handler.run(self.server.get_app()) File