mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-04-09 00:00:59 +00:00
relative import fix
This commit is contained in:
parent
42b73198b7
commit
bd761ec197
2 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue