-
-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathconfig.py
More file actions
24 lines (18 loc) · 633 Bytes
/
config.py
File metadata and controls
24 lines (18 loc) · 633 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
"""Flask config."""
from os import environ, path
BASE_DIR = path.abspath(path.dirname(__file__))
class Config:
"""Flask configuration variables."""
# General Config
ENVIRONMENT = environ.get("ENVIRONMENT")
FLASK_APP = "main.py"
FLASK_DEBUG = environ.get("FLASK_DEBUG")
SECRET_KEY = environ.get("SECRET_KEY")
# Assets
LESS_BIN = environ.get("LESS_BIN")
ASSETS_DEBUG = environ.get("ASSETS_DEBUG")
LESS_RUN_IN_DEBUG = environ.get("LESS_RUN_IN_DEBUG")
# Static Assets
STATIC_FOLDER = "static"
TEMPLATES_FOLDER = "templates"
COMPRESSOR_DEBUG = environ.get("COMPRESSOR_DEBUG")