-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
45 lines (34 loc) · 1.04 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
38
39
40
41
42
43
44
45
from os import environ
class Config:
SECRET_KEY = environ.get('SECRET_KEY')
LANGUAGES = ['en', 'pl']
CACHING_DISABLED = True
ADMIN_PASSWORD = environ.get('ADMIN_PASSWORD')
DEFAULT_USER_EMAIL = '[email protected]'
DEFAULT_USER_PASSWORD = 'password'
# Behaviour config
MAX_UPLOAD_SIZE_MB = 10*1024
MIN_PASSWORD_LENGTH = 8
CONFIRMATION_TIME = 60
PASSWORD_CHANGE_TIME = 60
# What will be logged
DATABASE_DEBUG = False
MAIL_DEBUG = False
FLASK_DEBUG = False
# Mail
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = environ.get('MAIL_LOGIN')
MAIL_PASSWORD = environ.get('MAIL_PASSWORD')
MAIL_DEFAULT_SENDER = 'Social Insight'
MAIL_SUBJECT_PREFIX = 'Social Insight - '
# Paths
DATABASE_LOCATION = 'db/base.db'
UPLOADS_LOCATION = 'uploads'
BABEL_CONFIG_LOCATION = 'frontend/babel.cfg'
BABEL_TRANSLATIONS_LOCATION = 'frontend/translations'
@staticmethod
def init_app(app):
pass
config = Config()