Skip to content
Merged
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
4 changes: 2 additions & 2 deletions django_select2/memcache_wrapped_db_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ class Client(object):

def __init__(self, hostname="127.0.0.1", port="11211", expiry=900):
if hostname and port:
import memcache_client
from . import memcache_client

self.cache = memcache_client.Client(hostname, port, expiry)

import db_client
from . import db_client

self.db = db_client.Client()

Expand Down
2 changes: 1 addition & 1 deletion django_select2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def is_valid_id(val):


if ENABLE_MULTI_PROCESS_SUPPORT:
from memcache_wrapped_db_client import Client
from .memcache_wrapped_db_client import Client

remote_server = Client(MEMCACHE_HOST, binary_type(MEMCACHE_PORT), MEMCACHE_TTL)

Expand Down