Skip to content

if redis connection is using sockets don't fail #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion redis_status/templatetags/redis_status_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def render(self, context):
clients = [client] if client else getattr(redis_cache, 'clients', [])
for client in clients:
kw = client.connection_pool.connection_kwargs
server_data = {'name': cache_name, 'url': 'redis://%s:%s/%s' % (kw['host'], kw['port'], kw['db'])}
server_data = {'name': cache_name, 'url': 'redis://%s:%s/%s' % (kw.get('host', None) or kw.get('path', ''), kw.get('port', None) or '', kw['db'])}
server_data['max_memory'] = client.config_get()['maxmemory']
stats = client.info()
stats['max_memory_human'] = _human_bytes(server_data['max_memory'])
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from setuptools import setup, find_packages

setup(
name='django-redis-status',
version='1.0.6',
name='django-redis-status-fork',
version='1.0.6.1',
description='A django application that displays the load and some other statistics about your redis cache instances in the admin.',
long_description=open('README.md').read(),
author='Eric Russell',
Expand Down