-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev_settings.py
More file actions
54 lines (38 loc) · 909 Bytes
/
dev_settings.py
File metadata and controls
54 lines (38 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
Library development settings
"""
# dir for library index
LIB_INDEXES = r'd:/temp/lib.rus.ec/index'
# dir for zips
LIB_ARCHIVE = r'd:/temp/lib.rus.ec'
# tmp dir for zip, fb2
TMP_DIR = r'c:/temp'
# dir for images
IMAGE_DIR = r'e:/temp/images'
# default limits for rows
DEFAULT_LIMITS = 20
# default skip
DEFAULT_SKIP_RECORD = 0
# mongo settings
MONGO_HOST = "localhost"
MONGO_PORT = 27017
MONGO_DATABASE = "books"
# redis-cache settings
REDIS_HOST = "localhost"
REDIS_PORT = 6379
# redis base for cache
REDIS_SESSION_DB = 2
# default session ttl
DEFAULT_SESSION_TTL = 300 # seconds
# redis base for sessions
REDIS_CACHE_DB = 1
# expire cache time
CACHE_DEFAULT_TIMEOUT = 43200
# name of queue for tasks
TASK_QUEUE_NAME = "btasks"
# minimal size for resize books covers
THUMBNAIL_SIZE = 200, 200
# Use session now?
USE_SESSIONS = False
# Avalaible formats for books
FORMATS = ('zip', 'fb2')