Minor tweaks to Redis config and comments

pull/1/head
Mark Veidemanis 3 years ago
parent 2cdc43e1cd
commit 5c75dfeeee
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -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…
Cancel
Save