-
Notifications
You must be signed in to change notification settings - Fork 16
/
settings.py
36 lines (32 loc) · 911 Bytes
/
settings.py
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
import os
import pathlib
DEBUG = bool(os.environ.get("DEBUG", False))
SQL_DEBUG = os.environ.get("SQL_DEBUG", DEBUG)
BASE_PATH = pathlib.Path(__file__).parent
APP_HOST = os.environ.get("APP_HOST", "0.0.0.0")
APP_PORT = int(os.environ.get("APP_PORT", 1414))
APP_TITLE = "GodMode 2"
APP_LOGO = "<strong>God</strong>Mode 2"
APP_DSN = "sqlite:///godmode/database/godmode.sqlite"
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"simpleFormatter": {
"format": "%(asctime)s %(levelname)-8s %(module)s : %(message)s"
},
},
"handlers": {
"consoleHandler": {
"class": "logging.StreamHandler",
"formatter": "simpleFormatter",
"stream": "ext://sys.stdout",
},
},
"loggers": {
"": {
"level": "DEBUG",
"handlers": ["consoleHandler"]
},
}
}