-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
34 lines (29 loc) · 764 Bytes
/
settings.py
File metadata and controls
34 lines (29 loc) · 764 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
import os
PROJECT_ROOT = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__))))
LOGGING_CONF = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'default': {
'format': '%(asctime)s [%(levelname)s][%(processName)s][%(threadName)s][%(filename)s:%(lineno)s]'
' %(name)s: %(message)s '
}
},
'handlers': {
'default': {
'level': 'NOTSET',
'class': 'logging.StreamHandler',
'formatter': 'default'
}
},
'loggers': {
'': {
'handlers': ['default'],
'level': 'INFO',
'propagate': False
}
}
}
HOST = 'localhost'
PORT = 8000
DB_NAME = 'comments.db'