-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
37 lines (29 loc) · 1.01 KB
/
config.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
37
import logging
import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), ".env")
load_dotenv(dotenv_path)
class Config(object):
SECRET_KEY = os.environ.get("SECRET_KEY")
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL")
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_API_URL = os.environ.get("MAIL_API_URL")
MAIL_API_KEY = os.environ.get("MAIL_API_KEY")
MAIL_API_DEBUG = os.environ.get("MAIL_API_DEBUG") or "no"
MAIL_FROM = os.environ.get("MAIL_FROM")
LANGUAGES = ["en", "es"]
TIMEZONE = "Europe/Paris"
ASSETREV_MANIFEST_FILE = os.environ.get("ASSETREV_MANIFEST_FILE")
ASSETREV_RELOAD = os.environ.get('DEBUG')
# Number of times a password is hashed
BCRYPT_LOG_ROUNDS = 12
# Logging configuration
LOG_LEVEL = logging.DEBUG
LOG_FILENAME = "logs/default.log"
LOG_MAXBYTES = 1024
LOG_BACKUPS = 2
# Maintenance Mode
MAINTENANCE = os.environ.get('MAINTENANCE')
@staticmethod
def init_app(app):
pass