Minor tweaks to Redis config and comments
This commit is contained in:
parent
2cdc43e1cd
commit
5c75dfeeee
|
@ -4,4 +4,5 @@ from redis import StrictRedis
|
|||
# Project imports
|
||||
from settings import settings
|
||||
|
||||
r = StrictRedis(unix_socket_path=settings.RedisSocket, db=0)
|
||||
# Define the Redis endpoint to the socket
|
||||
r = StrictRedis(unix_socket_path=settings.DB.RedisSocket, db=int(settings.DB.DB))
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# Other library imports
|
||||
from ConfigObject import ConfigObject
|
||||
|
||||
# Load the configuration
|
||||
settings = ConfigObject(filename="settings.ini")
|
||||
|
|
Loading…
Reference in New Issue